summaryrefslogtreecommitdiff
path: root/argv-array.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-30 00:50:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-30 00:50:27 (GMT)
commit9e234af281107d44116ecf31eef65de145c46d15 (patch)
tree62c390006f12c74171e5cfcb6c39ff16089570d1 /argv-array.h
parent4b2a0f820c32d40f2d58cf2551469290b725248d (diff)
parent234587fc87b156dc20461fc61353beeb904b43bc (diff)
downloadgit-9e234af281107d44116ecf31eef65de145c46d15.zip
git-9e234af281107d44116ecf31eef65de145c46d15.tar.gz
git-9e234af281107d44116ecf31eef65de145c46d15.tar.bz2
Merge branch 'jk/repack-no-explode-objects-from-old-pack'
Avoid writing out unreachable objects as loose objects when repacking, if such loose objects will immediately pruned due to its age anyway. By Jeff King * jk/repack-no-explode-objects-from-old-pack: gc: use argv-array for sub-commands argv-array: add a new "pushl" method argv-array: refactor empty_argv initialization gc: do not explode objects which will be immediately pruned
Diffstat (limited to 'argv-array.h')
-rw-r--r--argv-array.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/argv-array.h b/argv-array.h
index 74dd2b1..b93a69c 100644
--- a/argv-array.h
+++ b/argv-array.h
@@ -1,7 +1,7 @@
#ifndef ARGV_ARRAY_H
#define ARGV_ARRAY_H
-extern const char **empty_argv;
+extern const char *empty_argv[];
struct argv_array {
const char **argv;
@@ -15,6 +15,7 @@ void argv_array_init(struct argv_array *);
void argv_array_push(struct argv_array *, const char *);
__attribute__((format (printf,2,3)))
void argv_array_pushf(struct argv_array *, const char *fmt, ...);
+void argv_array_pushl(struct argv_array *, ...);
void argv_array_clear(struct argv_array *);
#endif /* ARGV_ARRAY_H */