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

Re: Can someone confirm what the contents of refs/heads/master means?

From: David Copeland <hidden>
Date: 2016-06-15 22:45:44

Thanks for the info :)

The reason I edited by hand is when I was on trunk (e.g. git checkout
trunk), I did a git svn dcommit and it worked, but said "you aren't on
a branch", so I was concerned I might be in some weird state (i.e. if
trunk isn't a branch, can I make a branch off of it?)

Dave

On Mon, Dec 8, 2008 at 2:35 PM, Peter Harris [off-list ref] wrote:
On Mon, Dec 8, 2008 at 2:23 PM, davetron5000 wrote:
quoted
So, I overwrote refs/heads/master with the contents of refs/remotes/
trunk (i.e. the SHA-1 of the svn trunk).

Things seem to be working; git svn dcommit commits to the trunk and
git svn rebase updates from svn's trunk.

So, I want to make sure that refs/heads/master actuall does, in fact,
point to the head revision of whatever branch is considered "master".
I do believe so, yes. That, or an entry in packed-refs.
quoted
Can someone comfirm this (or provide the actual explanation if I'm
wrong?)
Overwriting internal files by hand feels a little too much like work
for my taste. I would have done something more like "git reset --hard
trunk" (or, if not on master, "git branch -D master; git branch master
trunk" ), but of course you can feel free to do things the hard way if
you prefer. :-)

Peter Harris
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help