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

Re: Specifying revisions in the future

From
JPJonathan Paugh <jpaugh@gmx.us>
Date
Feb 7, 2012, 21:25 UTC
Message-ID
<4F3196CC.9020406@gmx.us>
In-Reply-To
<buosjiozity.fsf@dhlpc061.dev.necel.com>
On 02/05/2012 11:28 PM, Miles Bader wrote:
Show 12 quoted lines
> Andreas Schwab <schwab@linux-m68k.org> writes:
>> The rule should be to follow the leftmost parent as far as possible.
>> That means that X+2->D is B.
> 
> It might also be reasonable (and safer -- the user may not actually
> realize when there's an ambiguating branch-point) to simply have it
> abort with an error ("ambiguous future-ref specification") when
> there's any doubt...  I suspect most uses would be very simple "+1"
> etc., and not crossing branch points.
> 
> -miles
> 

Perhaps default to --linear or --no-cross or such. Whenever there's ambiguity, it will likely be harder for the user to think about than for git to resolve it in some defined-as-sane way, at least for many users.

At any rate, I got the answer I needed for my use case (sorry for not cc-ing the list, and thanks Jakub for that: http://article.gmane.org/gmane.comp.version-control.git/189926/match=specify+revisions+future).

Still, forward-refs would still be really cool.
Jonathan
Previous: Miles BaderNext: Matthieu Moy
Message 11 of 16 in “Specifying revisions in the future”
  1. jpaugh@gmx.usFeb 4, 2012
  2. Jakub NarebskiFeb 5, 2012
  3. Matthieu MoyFeb 5, 2012
  4. Andreas SchwabFeb 5, 2012
  5. Jakub NarebskiFeb 5, 2012
  6. Andreas SchwabFeb 5, 2012
  7. Jakub NarebskiFeb 5, 2012
  8. Philip OakleyFeb 5, 2012
  9. Andreas SchwabFeb 5, 2012
  10. Miles BaderFeb 6, 2012
  11. Jonathan PaughFeb 7, 2012
  12. Matthieu MoyFeb 6, 2012
  13. Andreas SchwabFeb 6, 2012
  14. Andreas SchwabFeb 5, 2012
  15. Junio C HamanoFeb 5, 2012
  16. Jakub NarebskiFeb 5, 2012

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.