Skip to contentSkip to conversation

builtin-describe.c: make a global variable "pattern" static

PATCH New Nanako Shiraishi 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 builtin-describe.c: make a global variable "pattern" static

This variable is not used by any other file.

---
 builtin-describe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
builtin-describe.c +1 -1
index e515f9c..62a1905 100644
@@ -20,7 +20,7 @@ static int tags;	/* But allow any tags if --tags is specified */
 static int longformat;
 static int abbrev = DEFAULT_ABBREV;
 static int max_candidates = 10;
-const char *pattern = NULL;
+static const char *pattern;
 static int always;
 
 struct commit_name {
Signature · 5 lines
1.5.6.3

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/