On Jan 30, 2008 2:28 AM, Karl Hasselström <kha@treskal.com> wrote:Too clever by half if you ask me. Why not just: editor = (os.environ.get('GIT_EDITOR') or config.get('stgit.editor') or config.get('core.editor') or os.environ.get('VISUAL') or os.environ.get('EDITOR') or 'vi') And be done with it? def get_config(keys, default=None): rv = default for k in keys: if '.' in k: d = config else: d = os.environ if k in d: rv = d[k] break return rv j. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
| Mark Fasheh | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Linus Torvalds | Linux 2.6.21-rc4 |
| Linus Torvalds | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Christoph Lameter | Network latency regressions from 2.6.22 to 2.6.29 |
