From: Junio C Hamano Date: Tue, 17 Mar 2009 00:24:19 GMT Subject: Re: [TopGit PATCH] tg-patch: fix invocation in sub working tree directory Message-ID: <7vwsapt2rw.fsf@gitster.siamese.dyndns.org> In-Reply-To: <36ca99e90903161625x317556f4hc826aabd01494ca0@mail.gmail.com> Bert Wesarg writes: > On Mon, Mar 16, 2009 at 23:33, Junio C Hamano wrote: >> Bert Wesarg writes: >> >>> tg patch won't work in a sub directory of the working tree, because 'git diff >>> --name-only' prints the names relative to the top working tree. >> >> "diff --relative --name-only"? > > No, unfortunately. In my bug case the changed file was in another > subtree, and --relative restricts the output to only files under the > current subtree. Ah, Ok, then insertion of cdup output does make sense (after all cdup was designed to be used that way).