diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-04-22 13:42:45 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-22 13:42:45 -0700 |
commit | 7780604ac200b763af71efba0eb7c880f39fd152 (patch) | |
tree | 41ac0884b585619aaf496f5f89909fd58e71a5bd /Documentation | |
parent | Merge branch 'pb/rebase-doc-typofix' (diff) | |
parent | MyFirstObjectWalk: remove unnecessary conditional statement (diff) | |
download | tgif-7780604ac200b763af71efba0eb7c880f39fd152.tar.xz |
Merge branch 'js/walk-doc-optim'
Code cleanup.
* js/walk-doc-optim:
MyFirstObjectWalk: remove unnecessary conditional statement
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/MyFirstObjectWalk.txt | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Documentation/MyFirstObjectWalk.txt b/Documentation/MyFirstObjectWalk.txt index aa828dfdc4..c3f2d1a831 100644 --- a/Documentation/MyFirstObjectWalk.txt +++ b/Documentation/MyFirstObjectWalk.txt @@ -357,9 +357,6 @@ static void walken_commit_walk(struct rev_info *rev) ... while ((commit = get_revision(rev))) { - if (!commit) - continue; - strbuf_reset(&prettybuf); pp_commit_easy(CMIT_FMT_ONELINE, commit, &prettybuf); puts(prettybuf.buf); |