git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 02/10] describe: trivial style fixes

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 28, 2013, 21:51 UTC
Message-ID
<1380405106-29430-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1380405106-29430-1-git-send-email-felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 builtin/describe.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/builtin/describe.c b/builtin/describe.c
index b9d3603..6f62109 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -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[] = {
@@ -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];
@@ -46,6 +45,7 @@ struct commit_name {
 	unsigned char sha1[20];
 	char *path;
 };
+
 static const char *prio_names[] = {
 	"head", "lightweight", "annotated",
 };
@@ -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;
 }
-- 
1.8.4-fc
Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 11 in “trivial style and other fixes”
  1. 00/10 trivial style and other fixesFelipe Contreras, Sep 28, 2013
  2. 01/10 transport-helper: trivial style fixFelipe Contreras, Sep 28, 2013
  3. 02/10 describe: trivial style fixesFelipe Contreras, Sep 28, 2013
  4. 03/10 pretty: trivial style fixFelipe Contreras, Sep 28, 2013
  5. 04/10 revision: trivial style fixesFelipe Contreras, Sep 28, 2013
  6. 05/10 revision: add missing includeFelipe Contreras, Sep 28, 2013
  7. 06/10 shortlog: add missing declarationFelipe Contreras, Sep 28, 2013
  8. 07/10 diff: trivial style fixFelipe Contreras, Sep 28, 2013
  9. 08/10 run-command: trivial style fixesFelipe Contreras, Sep 28, 2013
  10. 09/10 revision: trivial style fixesFelipe Contreras, Sep 28, 2013
  11. 10/10 setup: trivial style fixesFelipe Contreras, Sep 28, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.