diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-04-07 15:02:57 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-04-10 11:35:17 -0700 |
| commit | a70a93b7947d3aa6a202342256e616460a2b6e5b (patch) | |
| tree | 2f01791f45c98395e5465432b71cd242e7d004cf /commit.c | |
| parent | resolve_ref_unsafe(): use for loop to count up to MAXDEPTH (diff) | |
| download | git-a70a93b7947d3aa6a202342256e616460a2b6e5b.tar.gz git-a70a93b7947d3aa6a202342256e616460a2b6e5b.zip | |
resolve_ref_unsafe(): ensure flags is always set
If the caller passes flags==NULL, then set it to point at a local
scratch variable. This removes the need for a lot of "if (flags)"
guards in resolve_ref_1() and resolve_missing_loose_ref().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
