From: Pierre Habouzit Date: Wed, 06 Aug 2008 20:40:02 GMT Subject: Re: [PATCH] files given on the command line are relative to $cwd Message-ID: <20080806204002.GB903@artemis.madism.org> In-Reply-To: <7vr692oufw.fsf@gitster.siamese.dyndns.org> On Wed, Aug 06, 2008 at 06:43:47PM +0000, Junio C Hamano wrote: > When running "git commit -F file" and "git tag -F file" from a > subdirectory, we should take it as relative to the directory we started > from, not relative to the top-level directory. > > This adds a helper function "parse_options_fix_filename()" to make it more > convenient to fix this class of issues. Ideally, parse_options() should > support a new type of option, "OPT_FILENAME", to do this uniformly, but > this patch is meant to go to 'maint' to fix it minimally. I'm going in vacation tomorrow so I'm not likely to do that soon, but I agree it's sensible. -- ·O· Pierre Habouzit ··O madcoder@debian.org OOO http://www.madism.org