diff options
author | Taylor Blau <me@ttaylorr.com> | 2020-05-18 13:27:09 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-05-18 12:50:07 -0700 |
commit | fa8953cb401d2c73c280eb6c70e7a7918dbe8bfb (patch) | |
tree | f0d94c22515e731119aa395a5e9a2c9ea5a1510d /mergesort.h | |
parent | commit-graph.c: peel refs in 'add_ref_to_set' (diff) | |
download | tgif-fa8953cb401d2c73c280eb6c70e7a7918dbe8bfb.tar.xz |
builtin/commit-graph.c: extract 'read_one_commit()'
With either '--stdin-commits' or '--stdin-packs', the commit-graph
builtin will read line-delimited input, and interpret it either as a
series of commit OIDs, or pack names.
In a subsequent commit, we will begin handling '--stdin-commits'
differently by processing each line as it comes in, instead of in one
shot at the end. To make adequate room for this additional logic, split
the '--stdin-commits' case from '--stdin-packs' by only storing the
input when '--stdin-packs' is given.
In the case of '--stdin-commits', feed each line to a new
'read_one_commit' helper, which (for now) will merely call
'parse_oid_hex'.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergesort.h')
0 files changed, 0 insertions, 0 deletions