Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote.[ch]: parse_push_cas_option() can be static
author
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Mar 2017 20:20:48 +0000
(13:20 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 31 Mar 2017 20:20:48 +0000
(13:20 -0700)
Since
068c77a5
("builtin/send-pack.c: use parse_options API",
2015-08-19), there is no external user of this helper function.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c
patch
|
blob
|
history
remote.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
068c77a
)
diff --git
a/remote.c
b/remote.c
index 68901b0070d257dc31b59e9292cd7b6d7ef2e952..fc2df99b8100db62afbdfaa115c75ef50fe8ea20 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-2178,7
+2178,7
@@
static struct push_cas *add_cas_entry(struct push_cas_option *cas,
return entry;
}
return entry;
}
-int parse_push_cas_option(struct push_cas_option *cas, const char *arg, int unset)
+
static
int parse_push_cas_option(struct push_cas_option *cas, const char *arg, int unset)
{
const char *colon;
struct push_cas *entry;
{
const char *colon;
struct push_cas *entry;
diff --git
a/remote.h
b/remote.h
index 02d66ceff5c962995de37f351a09fe91055d6364..19a4905da6631dc9911ccbda18a969c234bdc88d 100644
(file)
--- a/
remote.h
+++ b/
remote.h
@@
-260,7
+260,6
@@
struct push_cas_option {
};
extern int parseopt_push_cas_option(const struct option *, const char *arg, int unset);
};
extern int parseopt_push_cas_option(const struct option *, const char *arg, int unset);
-extern int parse_push_cas_option(struct push_cas_option *, const char *arg, int unset);
extern int is_empty_cas(const struct push_cas_option *);
void apply_push_cas(struct push_cas_option *, struct remote *, struct ref *);
extern int is_empty_cas(const struct push_cas_option *);
void apply_push_cas(struct push_cas_option *, struct remote *, struct ref *);