git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Teach format-patch to handle output directory relative to cwd

From
Cesar Eduardo Barros <cesarb@cesarb.net>
Date
Jan 12, 2009, 23:12 UTC
Message-ID
<496BCE55.8030407@cesarb.net>
In-Reply-To
<7vab9wgmwe.fsf@gitster.siamese.dyndns.org>
Junio C Hamano escreveu:
> Without any explicit -o parameter, we correctly avoided putting the
> resulting patch output to the toplevel.  We should do the same when
> the user gave a relative pathname to be consistent with this case and also
> with how other commands handle relative pathnames.

Works great, only the resulting output to the screen is a bit ugly/confusing:

drivers/net/../../../0001-sc92031-more-useful-banner-in-kernel-log.patch drivers/net/../../../0002-sc92031-remove-meaningless-version-string.patch drivers/net/../../../0003-sc92031-inline-SC92031_DESCRIPTION.patch drivers/net/../../../0004-sc92031-use-device-id-directly-instead-of-made-up-n.patch drivers/net/../../../0005-sc92031-add-a-link-to-the-datasheet.patch

I would expect:

../../../0001-sc92031-more-useful-banner-in-kernel-log.patch ../../../0002-sc92031-remove-meaningless-version-string.patch ../../../0003-sc92031-inline-SC92031_DESCRIPTION.patch ../../../0004-sc92031-use-device-id-directly-instead-of-made-up-n.patch ../../../0005-sc92031-add-a-link-to-the-datasheet.patch

(after all, I am still inside the drivers/net directory)
-- 
Cesar Eduardo Barros
cesarb@cesarb.net
cesar.barros@gmail.com
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “git-format-patch with -o ../ in subdir of working copy writes output in wrong place”
  1. Cesar Eduardo BarrosJan 12, 2009
  2. Teach format-patch to handle output directory relative to cwdJunio C Hamano, Jan 12, 2009
  3. Cesar Eduardo BarrosJan 12, 2009
  4. Junio C HamanoJan 13, 2009
  5. Cesar Eduardo BarrosJan 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.