From: Kevin Buchs <kevin.buchs@newcontext.com>
To: git@vger.kernel.org
Subject: rationale behind git not tracking history of branches
Date: Tue, 26 May 2020 16:01:11 -0500 [thread overview]
Message-ID: <CAKTRx=09tjsH0j+Nf4_1uzn-GwasWFB_Q96KEO=qtr5nVBkAew@mail.gmail.com> (raw)
For many years of using Git, I always struggled to make sense of
commit history graphs (git log --graph; gitk). Just recently I
discovered that git does not track the history of branches to which
commits belonged and the lightbulb turned on. This is proving to be
painful in a project I inherited with permanent multiple branches.
Now, I am a bit curious as to the rationale behind this intentional
decision not to track branch history. Is it entirely a matter of
keeping branches lightweight?
I am assuming one can backfill for the missing capability by using a
commit hook to manually track when a branch head is changed. Perhaps
by storing the branch in the commit notes.
Kevin Buchs, Senior Engineer, New Context Services
kevin.buchs@newcontext.com 507-251-7463 St. Cloud, MN
next reply other threads:[~2020-05-26 21:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-26 21:01 Kevin Buchs [this message]
2020-05-27 2:50 ` rationale behind git not tracking history of branches Jonathan Nieder
2020-05-27 16:24 ` Kevin Buchs
2020-05-27 19:31 ` Michal Suchánek
2020-05-27 16:10 ` Randall S. Becker
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKTRx=09tjsH0j+Nf4_1uzn-GwasWFB_Q96KEO=qtr5nVBkAew@mail.gmail.com' \
--to=kevin.buchs@newcontext.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.
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).