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

Re: [PATCH] format-patch: make format.outputDirectory relative to worktree

From
Denton Liu <liu.denton@gmail.com>
Date
Dec 24, 2019, 22:05 UTC
Message-ID
<20191224220544.GA1917@generichostname>
In-Reply-To
<xmqq36d95xwh.fsf@gitster-ct.c.googlers.com>
Hi Junio,
On Tue, Dec 24, 2019 at 11:25:18AM -0800, Junio C Hamano wrote:
Show 15 quoted lines
> Denton Liu <liu.denton@gmail.com> writes:
> > Rewrite the output directory logic for format-patch so that it will be
> > relative to the worktree of the directory. An escape hatch is provided
> > for if the previous behaviour is desired by prepending "./" to the
> > variable.
> 
> Anything that forces existing users to change their existing
> settings is not an escape hatch.  It merely is a regression with a
> possible workaround.
> 
> So I dunno.  I probably would have accepted a patch that *adds*
> outputDirectory configuration that behaves the way you are proposing
> in this patch if we did not have the variable yet in the system
> (i.e. three or four years ago), but I am not sure if it is a good
> idea to change it after these years.

Perhaps instead of switching the default behaviour so that it's always relative to the top of the worktree, we can add some sort of prefix to indicate that we want this behaviour. Maybe `worktree:path/from/top` or `^path/from/top` or something like this?

Thanks,
Denton
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “format-patch: make format.outputDirectory relative to worktree”
  1. format-patch: make format.outputDirectory relative to worktreeDenton Liu, Dec 24, 2019
  2. Junio C HamanoDec 24, 2019
  3. Denton LiuDec 24, 2019
  4. Junio C HamanoDec 25, 2019

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.