Skip to content

Commit c447264

Browse files
felipecgitster
authored andcommitted
describe: trivial style fixes
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 23cd01e commit c447264

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

builtin/describe.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "hash.h"
1010
#include "argv-array.h"
1111

12-
#define SEEN (1u<<0)
12+
#define SEEN (1u << 0)
1313
#define MAX_TAGS (FLAG_BITS - 1)
1414

1515
static const char * const describe_usage[] = {
@@ -36,7 +36,6 @@ static const char *diff_index_args[] = {
3636
"diff-index", "--quiet", "HEAD", "--", NULL
3737
};
3838

39-
4039
struct commit_name {
4140
struct commit_name *next;
4241
unsigned char peeled[20];
@@ -46,6 +45,7 @@ struct commit_name {
4645
unsigned char sha1[20];
4746
char *path;
4847
};
48+
4949
static const char *prio_names[] = {
5050
"head", "lightweight", "annotated",
5151
};
@@ -488,9 +488,8 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
488488
} else if (dirty) {
489489
die(_("--dirty is incompatible with commit-ishes"));
490490
} else {
491-
while (argc-- > 0) {
491+
while (argc-- > 0)
492492
describe(*argv++, argc == 0);
493-
}
494493
}
495494
return 0;
496495
}

0 commit comments

Comments
 (0)