diff options
author | Jeff King <peff@peff.net> | 2009-03-22 04:59:20 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-22 10:20:04 -0700 |
commit | 48ef563641d1904f8da2c6fffe700fe6276af8dd (patch) | |
tree | f86a449fed3e290446d1ea68f2922dd34ee0d259 /t/t4013/diff.format-patch_--stdout_initial..master | |
parent | builtin-remote.c: no "commented out" code, please (diff) | |
download | tgif-48ef563641d1904f8da2c6fffe700fe6276af8dd.tar.xz |
remote: improve sorting of "configure for git push" list
The data structure used to store this list is a string_list
of sources with the destination in the util member. The
current code just sorts on the source; if a single source is
pushed to two different destination refs at a remote, then
the order in which they are printed is non-deterministic.
This patch implements a comparison using both fields.
Besides being a little nicer on the eyes, giving a stable
sort prevents false negatives in the test suite when
comparing output.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--stdout_initial..master')
0 files changed, 0 insertions, 0 deletions