git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Feature request: add a metadata in the commit: the "commited in branch" information
@ 2019-12-23 12:56 Arnaud Bertrand
  2019-12-29 23:17 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Arnaud Bertrand @ 2019-12-23 12:56 UTC (permalink / raw)
  To: git

Hello,

Git is a nice tool but one of the most important missing information
is the branch in which a commit was done.
I understood that in git philosophy, once it is merged, a branch can
disappear. But for a lot of companies, a SCM is also a guardian of the
history.
With this point of view, keeping track of the branch name when the
commit was done should be a very very big improvement (and a Major
argument to switch to git)
I speak just about a meta-data, exactly as the committer username,
email or date... no more.
If the branch is removed in the future or is renamed... so what, we
have at least its name at the time of the commit (better than
nothing).

Today, all my git repositories are using hooks to add the name of the
branch as header of the comment. But it would be so better to have it
officially and automatically and accessible as a git log meta-data.
It does not imply any constrains, simply a few characters more in the commit.
We can also imagine a core.branchInCommit parameter (true by default
;-) ) that could be set to false for those that don't one it.
The only commands affected should be git commit, git merge --no-ff and
git log that should be able to show this metadata.


Best regards,

Arnaud Bertrand

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-12-30 15:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-23 12:56 Feature request: add a metadata in the commit: the "commited in branch" information Arnaud Bertrand
2019-12-29 23:17 ` Junio C Hamano
2019-12-29 23:53   ` Arnaud Bertrand
2019-12-30  4:15     ` Theodore Y. Ts'o
2019-12-30 11:59       ` Arnaud Bertrand
2019-12-30 15:15         ` Paul Smith

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).