Re: [PATCH] rev-parse: Fix shell scripts whose cwd is a symlink into a git work-dir
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Nov 22, 2008, 21:54 UTC
- Message-ID
- <m31vx3l94x.fsf@localhost.localdomain>
- In-Reply-To
- <1227389614-10946-1-git-send-email-marcel@oak.homeunix.org>
"Marcel M. Cary" <marcel@oak.homeunix.org> writes:
> * Change "git rev-parse --show-cdup" to print a full path instead of > a series of "../" when it prints anything
But that is contrary to the _name_ of option. It is --show-cdup, as in "show cd up". And I think your change will break a few scripts.
I think you should use "git rev-parse --work-tree" for full path to working directory:
--show-cdup
When the command is invoked from a subdirectory, show the path
of the top-level directory relative to the current directory
(typically a sequence of "../", or an empty string).-- Jakub Narebski Poland ShadeHawk on #git