From: Jon Forrest <nobozo@gmail.com>
To: git@vger.kernel.org
Subject: [RFC] A Change to Commit IDs Too Ridiculous to Consider?
Date: Sun, 24 Jul 2016 11:12:12 -0700 [thread overview]
Message-ID: <nn30dv$5sn$1@ger.gmane.org> (raw)
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.
What if it were possible, for instructional purposes only, to somehow tell Git to relax
this requirement. By this I mean, the commit date would *not* be included when constructing
the commit ID. This would allow tutorials to show exactly what to expect to see when running commands.
I realize that questions would remain such as how to turn on this behavior (e.g. command line flags,
environment variables) and whether 'git log' (and maybe other commands) should somehow distinguish these
mutant commits. There would probably be other issues to consider.
Again, this is for instructional purposes only, and only when the committer explicitly
chooses to use this option. I'm *not* proposing a general change to Git's behavior.
Is such a thing to ridiculous to even consider? Is there a better way to achieve the same result?
Jon Forrest
next reply other threads:[~2016-07-24 18:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-24 18:12 Jon Forrest [this message]
2016-07-24 18:46 ` [RFC] A Change to Commit IDs Too Ridiculous to Consider? Jakub Narębski
2016-07-24 19:20 ` Jon Forrest
2016-07-24 20:42 ` Jakub Narębski
2016-07-25 3:56 ` Jon Forrest
2016-07-24 18:51 ` Rodrigo Campos
2016-07-24 19:57 ` Jon Forrest
2016-07-25 15:03 ` Junio C Hamano
2016-07-25 17:11 ` Junio C Hamano
2016-07-26 14:26 ` Philip Oakley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='nn30dv$5sn$1@ger.gmane.org' \
--to=nobozo@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).