dir.c: coding style fix

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jul 14, 2014 at 11:47 UTC d961baa84689afdd0fe6b81f68b06481d83ce249
1 file changed +6 -6
dir.c
+6 -6
@@ -557,8 +557,7 @@ int add_excludes_from_file_to_list(const char *fname,
557 buf = xrealloc(buf, size+1);
558 buf[size++] = '\n';
559 }
560 - }
561 - else {
560 + } else {
561 size = xsize_t(st.st_size);
562 if (size == 0) {
563 close(fd);
@@ -793,9 +792,11 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
792
793 group = &dir->exclude_list_group[EXC_DIRS];
794
796 - /* Pop the exclude lists from the EXCL_DIRS exclude_list_group
795 + /*
796 + * Pop the exclude lists from the EXCL_DIRS exclude_list_group
797 * which originate from directories not in the prefix of the
798 - * path being checked. */
798 + * path being checked.
799 + */
800 while ((stk = dir->exclude_stack) != NULL) {
801 if (stk->baselen <= baselen &&
802 !strncmp(dir->basebuf, base, stk->baselen))
@@ -822,8 +823,7 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
823 if (current < 0) {
824 cp = base;
825 current = 0;
825 - }
826 - else {
826 + } else {
827 cp = strchr(base + current + 1, '/');
828 if (!cp)
829 die("oops in prep_exclude");