author | Jeff King <peff@peff.net> | |
Sat, 17 Nov 2007 12:54:27 +0000 (07:54 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 17 Nov 2007 20:10:50 +0000 (12:10 -0800) | ||
commit | 8736a8489080509516f5f4cc1cc74de33150f397 | |
tree | cb3423ab9457c718629f9d4ef2a860fc10b041ec | tree | snapshot |
parent | bcd2e266a6270254212603e90186251116d3cd16 | commit | diff |
send-pack: track errors for each ref
Instead of keeping the 'ret' variable, we instead have a
status flag for each ref that tracks what happened to it.
We then print the ref status after all of the refs have
been examined.
This paves the way for three improvements:
- updating tracking refs only for non-error refs
- incorporating remote rejection into the printed status
- printing errors in a different order than we processed
(e.g., consolidating non-ff errors near the end with
a special message)
Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Instead of keeping the 'ret' variable, we instead have a
status flag for each ref that tracks what happened to it.
We then print the ref status after all of the refs have
been examined.
This paves the way for three improvements:
- updating tracking refs only for non-error refs
- incorporating remote rejection into the printed status
- printing errors in a different order than we processed
(e.g., consolidating non-ff errors near the end with
a special message)
Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Alex Riesen <raa.lkml@gmail.com>
Acked-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-send-pack.c | diff | blob | history | |
cache.h | diff | blob | history | |
t/t5404-tracking-branches.sh | diff | blob | history |