Re: [PATCH] git-bundle - bundle objects and references for disconnected transfer.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Wednesday, February 14, 2007 - 5:07 pm

Hi,

On Wed, 14 Feb 2007, Mark Levedahl wrote:


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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Create a man page for git-bundle., Mark Levedahl, (Wed Feb 14, 7:10 am)
[PATCH] Create a man page for git-unbundle., Mark Levedahl, (Wed Feb 14, 7:10 am)
Re: [PATCH] git-bundle - bundle objects and references for ..., Johannes Schindelin, (Wed Feb 14, 2:58 pm)
Re: [PATCH] git-bundle - bundle objects and references for ..., Johannes Schindelin, (Wed Feb 14, 5:07 pm)
Re: [PATCH] git-bundle - bundle objects and references for ..., Johannes Schindelin, (Wed Feb 14, 5:15 pm)
Re: [PATCH] git-bundle - bundle objects and references for ..., Johannes Schindelin, (Thu Feb 15, 8:32 am)
Re: [PATCH] git-bundle - bundle objects and references for ..., Johannes Schindelin, (Thu Feb 15, 8:35 am)
Re: [PATCH] git-bundle - bundle objects and references for ..., Johannes Schindelin, (Thu Feb 15, 5:40 pm)