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

Re: Creating something like increasing revision numbers

From
alexandrul <alexandrul.ct@gmail.com>
Date
Oct 18, 2009, 16:35 UTC
Message-ID
<4ADB43EA.5060901@gmail.com>
In-Reply-To
<9b18b3110910180916s2a2ac751i7520e64294037817@mail.gmail.com>
demerphq wrote:
Show 14 quoted lines
> Consider you have A-B-C-D-E in your master repo. So presumably numbered 1..5.
> 
> If i then make a trivial comment fix to A and then merge and push we
> end up with:
> 
> A-B-C-D-E-G
>  \        /
>   F------+
> 
> If i understand you right you will set F to 6 and G to 7. Thus youll
> end up with the problem that F is a descendent of A yet has a higher
> "version number" than E. You can repeat this process for ever.
> 
> If this suits your needs then great.
Just like subversion :D

It helps by ordering commits by time, not by parents, and I don't need repo access to figure it out that F is the latest bug/feature/fix.

Think about 2 sql servers, each has different versions of the same stored procedure. Which one is newer, given that you don't have the git repository on the production servers? I can't make any decision on SHA1 only, and if they belong to the same branch ("prod") I'm so out of luck. At the moment I'm saving SHA1, refs, author date, comitter date and last subject. But it's easier for me to compare revision numbers than dates. And don't forget that updating decisions may be taken by people that have nothing to do with development.

Have a nice day,
  A.
Previous: demerphqNext: Jon Smirl
Message 13 of 23 in “Creating something like increasing revision numbers”
  1. Norbert PreiningOct 18, 2009
  2. Johan HerlandOct 18, 2009
  3. Norbert PreiningOct 18, 2009
  4. Johan HerlandOct 18, 2009
  5. alexandrulOct 18, 2009
  6. Nicolas PitreOct 19, 2009
  7. Junio C HamanoOct 18, 2009
  8. Norbert PreiningOct 19, 2009
  9. alexandrulOct 18, 2009
  10. demerphqOct 18, 2009
  11. Norbert PreiningOct 18, 2009
  12. demerphqOct 18, 2009
  13. alexandrulOct 18, 2009
  14. Jon SmirlOct 18, 2009
  15. Daniel BarkalowOct 18, 2009
  16. Norbert PreiningOct 19, 2009
  17. Daniel BarkalowOct 19, 2009
  18. Norbert PreiningOct 19, 2009
  19. Daniel BarkalowOct 19, 2009
  20. Nicolas PitreOct 19, 2009
  21. Norbert PreiningOct 19, 2009
  22. Johannes SixtOct 19, 2009
  23. David AguilarOct 21, 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.