Skip to content

Commit d961baa

Browse files
pcloudsgitster
authored andcommitted
dir.c: coding style fix
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Karsten Blees <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 66f467c commit d961baa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dir.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,7 @@ int add_excludes_from_file_to_list(const char *fname,
557557
buf = xrealloc(buf, size+1);
558558
buf[size++] = '\n';
559559
}
560-
}
561-
else {
560+
} else {
562561
size = xsize_t(st.st_size);
563562
if (size == 0) {
564563
close(fd);
@@ -793,9 +792,11 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
793792

794793
group = &dir->exclude_list_group[EXC_DIRS];
795794

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
797797
* which originate from directories not in the prefix of the
798-
* path being checked. */
798+
* path being checked.
799+
*/
799800
while ((stk = dir->exclude_stack) != NULL) {
800801
if (stk->baselen <= baselen &&
801802
!strncmp(dir->basebuf, base, stk->baselen))
@@ -822,8 +823,7 @@ static void prep_exclude(struct dir_struct *dir, const char *base, int baselen)
822823
if (current < 0) {
823824
cp = base;
824825
current = 0;
825-
}
826-
else {
826+
} else {
827827
cp = strchr(base + current + 1, '/');
828828
if (!cp)
829829
die("oops in prep_exclude");

0 commit comments

Comments
 (0)