Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15

Branches and all commits

From: Jon Nelson <hidden>
Date: 2016-06-15 22:42:15

Should *all* commits be reachable via at least one branch? I ran into a 
situation this weekend that has me a little confused. I had performed a 
number of commits and such and I noticed that the author and committer 
info had suboptimal values. A bit of searching led me to a comment made 
by Linus that basically said "go hack git-convert-objects", which I did. 
After performing git-convert-objects on every commit object in 
.git/refs/heads and the requisite pruning, etc... just about everything 
looked fine. However, I still had a long series of commits that 
contained the wrong information. Further inspection makes it appear as 
though these commits are not reachable via any branch, although they are 
/all/ reachable via a series of tags. I worked around the problem by 
further modifying git-convert-objects to also understand tags (at least 
the basic ones I've got) and that's all taken care of, but the question 
remains: should *all* commit objects be reachable by at least one 
branch?

--
Jon Nelson [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help