From: Jakub Narebski Date: Sat, 22 Nov 2008 21:54:09 GMT Subject: Re: [PATCH] rev-parse: Fix shell scripts whose cwd is a symlink into a git work-dir Message-ID: In-Reply-To: <1227389614-10946-1-git-send-email-marcel@oak.homeunix.org> "Marcel M. Cary" 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