Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry D'Anna <larry@elder-gods.org>2010-02-27 07:52:15 +0300
committerJunio C Hamano <gitster@pobox.com>2010-02-28 21:39:30 +0300
commit77555854be6e7fbce07c9ded30ea859b54699be0 (patch)
tree347afee0f6017460bff13aa19f75496ab26e3ad2 /send-pack.h
parent60cfeb8e95d859bf250804c7981e8481e297c3b6 (diff)
git-push: make git push --porcelain print "Done"
The script calling git push --porcelain --dry-run can see clearly from the output if an update was rejected. However, it will probably need to distinguish this condition from the push failing for other reasons, such as the remote not being reachable. This patch modifies git push --porcelain to print "Done" after the rest of its output unless any errors have occurred. For the purpose of the "Done" line, knowing a ref will be rejected in a --dry-run does not count as an error. Actual rejections in non --dry-run pushes do count as errors. Signed-off-by: Larry D'Anna <larry@elder-gods.org> Acked-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.h')
-rw-r--r--send-pack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/send-pack.h b/send-pack.h
index 28141ac913..60b4ba66eb 100644
--- a/send-pack.h
+++ b/send-pack.h
@@ -4,6 +4,7 @@
struct send_pack_args {
unsigned verbose:1,
quiet:1,
+ porcelain:1,
send_mirror:1,
force_update:1,
use_thin_pack:1,