author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Fri, 9 Mar 2007 16:30:15 +0000 (17:30 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 12 Mar 2007 06:55:46 +0000 (23:55 -0700) | ||
commit | 34572ed2c809c2e0b00dc660bdb2dd201c5ff85f | |
tree | 4b1c5cd7eda6242cdb1359c0b05a6ee27f3e00f6 | tree | snapshot |
parent | 4a62d3f5b237fb9fab7df778ecf62906ff892065 | commit | diff |
git-bundle: only die if pack would be empty, warn if ref is skipped
A use case for git-bundle expected to be quite common is this:
$ git bundle create daily.bundle --since=10.days.ago --all
The expected outcome is _not_ to error out if only a couple of the
refs were not changed during the last 10 days.
This patch complains loudly about refs which are skipped due to the
pack not containing the corresponding objects, but dies only if
no objects would be in the pack _at all_.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
A use case for git-bundle expected to be quite common is this:
$ git bundle create daily.bundle --since=10.days.ago --all
The expected outcome is _not_ to error out if only a couple of the
refs were not changed during the last 10 days.
This patch complains loudly about refs which are skipped due to the
pack not containing the corresponding objects, but dies only if
no objects would be in the pack _at all_.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-bundle.c | diff | blob | history |