author | Junio C Hamano <gitster@pobox.com> | |
Mon, 7 Nov 2011 21:26:22 +0000 (13:26 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 8 Nov 2011 18:36:53 +0000 (10:36 -0800) | ||
commit | ae8e4c9ce10ea9439a88b79a40aeff4696d40416 | |
tree | ba5ca6899912fda76ce6a9c21794242a356919e3 | tree | snapshot |
parent | 895680f044ebe9df600e6c9e042d40d9d953bc9b | commit | diff |
merge: make usage of commit->util more extensible
The merge-recursive code uses the commit->util field directly to annotate
the commit objects given from the command line, i.e. the remote heads to
be merged, with a single string to be used to describe it in its trace
messages and conflict markers.
Correct this short-signtedness by redefining the field to be a pointer to
a structure "struct merge_remote_desc" that later enhancements can add
more information. Store the original objects we were told to merge in a
field "obj" in this struct, so that we can recover the tag we were told to
merge.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The merge-recursive code uses the commit->util field directly to annotate
the commit objects given from the command line, i.e. the remote heads to
be merged, with a single string to be used to describe it in its trace
messages and conflict markers.
Correct this short-signtedness by redefining the field to be a pointer to
a structure "struct merge_remote_desc" that later enhancements can add
more information. Store the original objects we were told to merge in a
field "obj" in this struct, so that we can recover the tag we were told to
merge.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/merge.c | diff | blob | history | |
commit.c | diff | blob | history | |
commit.h | diff | blob | history | |
merge-recursive.c | diff | blob | history |