Re: [PATCH 2/2] handle_alias: provide GIT_PREFIX to !alias

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

 



2011/4/27 Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx>:
> @@ -589,6 +589,8 @@ it will be treated as a shell command. ÂFor example, defining
> Â"gitk --all --not ORIG_HEAD". ÂNote that shell commands will be
> Âexecuted from the top-level directory of a repository, which may
> Ânot necessarily be the current directory.
> +'GIT_PREFIX' is set as returned by running 'git rev-parse --show-prefix'
> +from the original current directory. See linkgit:git-rev-parse[1].

It made me wonder "but then why should not we just do GIT_PREFIX=`git
rev-parse --show-prefix` in the alias?" then realized by the time we
do that, it's already too late. Maybe

> +'GIT_PREFIX' is set as returned by running 'git rev-parse --show-prefix'
> +before current directory is changed to top-level directory. See linkgit:git-rev-parse[1].

?
-- 
Duy
--
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]