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

Re: 'next'ed --allow-unrelated-histories could cause lots of grief

From
Joey Hess <id@joeyh.name>
Date
Apr 21, 2016, 18:19 UTC
Message-ID
<20160421181917.GA3628@kitenet.net>
In-Reply-To
<20160421161043.GK7907@onerussian.com>
Yaroslav Halchenko wrote:
Show 5 quoted lines
> which is planned for the next release.  I guess it is indeed a
> worthwhile accident-prevention measure BUT not sure if it is so
> important as to cause a change in behavior on which some projects using
> git through the cmdline interface might have been relying upon for
> years!

Not only through the command line interface. The git-annex webapp has common use cases that will be broken by this change.

Show 5 quoted lines
> Moreover, it was explicitly stated that "no configuration variable to
> enable this by default exists and will not be added", which would cause
> 3rd party scripts/code/projects relying on previous behavior  to provide
> version specific handling (either to add that
> --allow-unrelated-histories or not)... very cumbersome!

Agreed, a configuration setting that could be passed via -c would be much less cumbersome than checking the version of git in order to only pass the option to git versions that understand it. This would also provide a way to get git pull to allow such merges.

Compare with, for example, the change to default to an interactive merge, where GIT_MERGE_AUTOEDIT=no was provided to ease compatability.

-- 
see shy jo
Previous: Junio C Hamano
Message 8 of 8 in “'next'ed --allow-unrelated-histories could cause lots of grief”
  1. Yaroslav HalchenkoApr 21, 2016
  2. Junio C HamanoApr 21, 2016
  3. Yaroslav HalchenkoApr 21, 2016
  4. Junio C HamanoApr 21, 2016
  5. Yaroslav HalchenkoApr 21, 2016
  6. Joey HessApr 21, 2016
  7. Junio C HamanoApr 21, 2016
  8. Joey HessApr 21, 2016

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.