summaryrefslogtreecommitdiff
path: root/git-checkout-script
AgeCommit message (Collapse)AuthorFilesLines
2005-06-27git-checkout-script: use "--verify --revs-only" to parse revsLibravatar Linus Torvalds1-1/+1
Sven Verdoolaege points out that I added the --verify option to git-rev-parse exactly for things like this, but didn't update the users.
2005-06-21Fix typo in git-checkout-script.Libravatar Linus Torvalds1-1/+1
The confusion between "revs" vs "refs" caused us to not find the branch name, which in turn meant that we never switched the HEAD over to it.
2005-06-21Remove MERGE_HEAD in "git checkout/reset"Libravatar Linus Torvalds1-1/+12
Both of these scripts will end up resetting the index to some specific head, and any unresolved merge will be forgotten.
2005-06-21git checkout: fix default head caseLibravatar Linus Torvalds1-1/+1
The "${new=$old}" syntax only works for an undefined 'new', not for an empty one. I knew that. Really. I'm not stupid.
2005-06-21Make "git checkout" know about different branchesLibravatar Linus Torvalds1-16/+23
Now "git checkout xyzzy" will check out branch "xyzzy" and switch the HEAD to it.
2005-06-21"git checkout": add "-u" flag to update HEAD conditionallyLibravatar Linus Torvalds1-6/+9
And fix braino on testing "-f".
2005-06-21Add "git checkout" that does what the name suggestsLibravatar Linus Torvalds1-0/+30
It is careful by default and refuses to overwrite old info, but if you want to force everything to be re-read, use the "-f" flag. Some day I'll make it take individual filenames too. Right now it's all-or-nothing.