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

Re: [RFC] A Change to Commit IDs Too Ridiculous to Consider?

From
RCRodrigo Campos <rodrigo@sdfg.com.ar>
Date
Jul 24, 2016, 18:51 UTC
Message-ID
<20160724185132.GN25141@sdfg.com.ar>
In-Reply-To
<nn30dv$5sn$1@ger.gmane.org>
On Sun, Jul 24, 2016 at 11:12:12AM -0700, Jon Forrest wrote:
Show 10 quoted lines
> 
> Those of us who write instructional material about Git all face the same problem.
> This is that we can't write step by step instructions that show the results of
> making a commit because users will always see different commit IDs.
> This is fundamental to the design of Git.
> 
> Even if the instructional material tells users to use standard author and committer
> information, (e.g. john.doe@example.com) and shows the text of the file being committed
> and the commit message to add, the resulting commit ID will differ from reader to reader
> since the commit will presumably take place at different times.

And what is the problem with that, if you are doing it with instructional purposes? Let's assume that this helps and not confuses later when the commits *do* change. What is the problem you face?

I mean, for some examples you can use HEAD, HEAD^, HEAD~4, etc. and that always works, no matter the commit id. In which cases do you want/need the commit ids to be equal? Can you be more specific?

Thanks a lot, Rodrigo

Previous: Jon ForrestNext: Jon Forrest
Message 6 of 10 in “[RFC] A Change to Commit IDs Too Ridiculous to Consider?”
  1. Jon ForrestJul 24, 2016
  2. Jakub NarębskiJul 24, 2016
  3. Jon ForrestJul 24, 2016
  4. Jakub NarębskiJul 24, 2016
  5. Jon ForrestJul 25, 2016
  6. Rodrigo CamposJul 24, 2016
  7. Jon ForrestJul 24, 2016
  8. Junio C HamanoJul 25, 2016
  9. Junio C HamanoJul 25, 2016
  10. Philip OakleyJul 26, 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.