It makes things easier, doesn't it?
Ah, I just realized that you do not shift. This is wrong. For example,
git bundle --output=a1 a..b
would pass "--output=a1 a..b" to git-rev-parse. While you say
"--revs-only", this would work, but so would "these are no refs". You lose
valuable information that way (namely invalid parameters). The standard
shell way is nicely visible in git-tag.sh (see the while loop). It is
basically
while case "$#" in 0) break ;; esac
do
case "$1" in
--output)
# handle $1 (and check that you can write to it).
;;
-*)
usage
;;
*)
break
esac
done
Not if you just pipe the two parts (refs & pack) into the output. Piping
also allows for "--output -" meaning stdout...
Not at all. I meant to verify that these _hashes_ exist as commits. Not
necessarily refs.
We have shallow clones. This means that you can mark commits as "fake
root" commits, i.e. even if they have parents, they are treated as if they
had no parents. You do this by adding the hashes of the shallow commits to
.git/shallow. For a short description, search for "shallow" in
Documentation/glossary.txt.
Ciao,
Dscho
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html