]> git.ipfire.org Git - thirdparty/git.git/commit
commit-graph: remove a duplicate assignment
authorAlex Henrie <alexhenrie24@gmail.com>
Tue, 1 Oct 2019 02:29:34 +0000 (20:29 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2019 06:04:16 +0000 (15:04 +0900)
commit8da02ce62a4e76aea7a02d56b66b10eedc8e6db8
tree32eb5f7fe16c8bf5d7effb4e241cb06e36fa97fa
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
commit-graph: remove a duplicate assignment

Leave the variable 'g' uninitialized before it is set just before its
first use in front of a loop, which is a much more appropriate place to
indicate what it is used for.

Also initialize the variable 'num_commits' just before the loop instead
of at the beginning of the function for the same reason.

Reviewed-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c