| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
It sets up the normal git environment variables and a few helper
functions (currently just "die()"), and returns ok if it all looks like
a git archive. So use it something like
. git-sh-setup-script || die "Not a git archive"
to make the rest of the git scripts more careful and readable.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Both of these scripts will end up resetting the index to some specific
head, and any unresolved merge will be forgotten.
|
|
|
|
|
| |
The "${new=$old}" syntax only works for an undefined 'new', not for an
empty one. I knew that. Really. I'm not stupid.
|
|
|
|
|
| |
Now "git checkout xyzzy" will check out branch "xyzzy" and
switch the HEAD to it.
|
|
|
|
| |
And fix braino on testing "-f".
|
|
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.
|