diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-12-13 11:13:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-13 11:13:56 -0800 |
commit | 790c83cda92f95f1b4b91e2ddc056a52a99a055d (patch) | |
tree | 8c4f7450ba7f91ed307e42a19f910937b54cabd2 | |
parent | 538d1239a8a715a60d611de1997ec75896647577 (diff) | |
parent | bdd478d620034dc6517aea940f5dc6b88f780c04 (diff) | |
download | git-790c83cda92f95f1b4b91e2ddc056a52a99a055d.tar.gz |
Merge branch 'maint'
-rw-r--r-- | Documentation/git.txt | 1 | ||||
-rw-r--r-- | builtin/pack-redundant.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt index 25e2f3a60e..1d797f27ed 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -650,6 +650,7 @@ git so take care if using Cogito etc. If the 'GIT_DIR' environment variable is set then it specifies a path to use instead of the default `.git` for the base of the repository. + The '--git-dir' command-line option also sets this value. 'GIT_WORK_TREE':: Set the path to the working tree. The value will not be diff --git a/builtin/pack-redundant.c b/builtin/pack-redundant.c index f5c6afc5dd..649c3aaa93 100644 --- a/builtin/pack-redundant.c +++ b/builtin/pack-redundant.c @@ -301,14 +301,14 @@ static void pll_free(struct pll *l) */ static struct pll * get_permutations(struct pack_list *list, int n) { - struct pll *subset, *ret = NULL, *new_pll = NULL, *pll; + struct pll *subset, *ret = NULL, *new_pll = NULL; if (list == NULL || pack_list_size(list) < n || n == 0) return NULL; if (n == 1) { while (list) { - new_pll = xmalloc(sizeof(pll)); + new_pll = xmalloc(sizeof(*new_pll)); new_pll->pl = NULL; pack_list_insert(&new_pll->pl, list); new_pll->next = ret; @@ -321,7 +321,7 @@ static struct pll * get_permutations(struct pack_list *list, int n) while (list->next) { subset = get_permutations(list->next, n - 1); while (subset) { - new_pll = xmalloc(sizeof(pll)); + new_pll = xmalloc(sizeof(*new_pll)); new_pll->pl = subset->pl; pack_list_insert(&new_pll->pl, list); new_pll->next = ret; |