Re: EDITOR with tilde not expanded in git-commit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Lear <rael@xxxxxxxxxx> writes:

> On Tuesday, August 28, 2007 at 21:37:05 (+0700) Nguyen Thai Ngoc Duy writes:
>>
>>Why not set EDITOR="$HOME/bin/xemacs -nw"? It should work well IMHO.
>
> Of course, and one could use a full path also, but tilde is a
> perfectly valid replacement for $HOME,

This one is not a good argument. If you write this:

export EDITOR=~/bin/emacs

the shell does the tilde expansion, and git doesn't have to worry
about it.

> and I think git should support it, and not force the user to work
> around it.

I just checked, and at least less, svn, cvs and mutt do the tilde
expansion themselves (the way you expect). To me, that is an argument:
if a setup works with most unix-ish tools, it should work for git too.

Now, for the good news: with the latest git, it just works!

commit 08874658b450600e72bb7cb0d0747c1ec4b0bfe1
Author: David Kastrup <dak@xxxxxxx>
Date:   Wed Aug 1 23:47:20 2007 +0200

-- 
Matthieu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux