]> git.ipfire.org Git - thirdparty/git.git/commit - archive-tar.c
archive-tar: unindent write_tar_entry by one level
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 3 May 2012 01:51:02 +0000 (08:51 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 May 2012 17:22:56 +0000 (10:22 -0700)
commit853907097af803c595f0c12fc355c907702eb7c8
tree0f8da316310b0d1c334f3bf962b2c92b66148a7a
parentd240d4102103215e9fe38431b1702a4024d2f1a7
archive-tar: unindent write_tar_entry by one level

It's used to be

if (!sha1) {
  ...
} else if (!path) {
  ...
} else {
  ...
}

Now that the first two blocks are no-op. We can remove the if/else
skeleton and put the else block back by one indent level.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-tar.c