From 77555854be6e7fbce07c9ded30ea859b54699be0 Mon Sep 17 00:00:00 2001 From: Larry D'Anna Date: Fri, 26 Feb 2010 23:52:15 -0500 Subject: 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 Acked-by: Tay Ray Chuan Signed-off-by: Junio C Hamano --- send-pack.h | 1 + 1 file changed, 1 insertion(+) (limited to 'send-pack.h') 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, -- cgit v1.2.1