| author | Johan Herland <johan@herland.net> | |
| Tue, 9 Nov 2010 21:49:47 +0000 (22:49 +0100) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Wed, 17 Nov 2010 21:21:30 +0000 (13:21 -0800) | ||
| commit | 56881843d4d916a166ac4c6ba1803e5ceba9c44d | |
| tree | e0f9edaaaf032fb9998953dcc9ada0eb6bc738ec | tree | snapshot |
| parent | 75ef3f4a5cc69b21bc825ed0e739030d77a4f077 | commit | diff |
builtin/notes.c: Refactor creation of notes commits.
Create new function create_notes_commit() which is slightly more general than
commit_notes() (accepts multiple commit parents and does not auto-update the
notes ref). This function will be used by the notes-merge functionality in
future patches.
Also rewrite builtin/notes.c:commit_notes() to reuse this new function.
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Create new function create_notes_commit() which is slightly more general than
commit_notes() (accepts multiple commit parents and does not auto-update the
notes ref). This function will be used by the notes-merge functionality in
future patches.
Also rewrite builtin/notes.c:commit_notes() to reuse this new function.
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| builtin.h | diff | blob | history | |
| builtin/notes.c | diff | blob | history | |
| notes-merge.c | diff | blob | history | |
| notes-merge.h | diff | blob | history |