Skip to content

Commit

Permalink
describe: trivial style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Oct 31, 2013
1 parent 23cd01e commit c447264
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions builtin/describe.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "hash.h"
#include "argv-array.h"

#define SEEN (1u<<0)
#define SEEN (1u << 0)
#define MAX_TAGS (FLAG_BITS - 1)

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


struct commit_name {
struct commit_name *next;
unsigned char peeled[20];
Expand All @@ -46,6 +45,7 @@ struct commit_name {
unsigned char sha1[20];
char *path;
};

static const char *prio_names[] = {
"head", "lightweight", "annotated",
};
Expand Down Expand Up @@ -488,9 +488,8 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
} else if (dirty) {
die(_("--dirty is incompatible with commit-ishes"));
} else {
while (argc-- > 0) {
while (argc-- > 0)
describe(*argv++, argc == 0);
}
}
return 0;
}

0 comments on commit c447264

Please sign in to comment.