diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-01-27 18:01:51 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-01 13:46:52 -0800 |
commit | 4c0ce0742b19c2a430b809224911b9212313265f (patch) | |
tree | bbc436fc50fe4c90351ab21e0e19dec4bb4004c7 /pack-write.c | |
parent | 860a74d9d909002b16c50b58050908756065125d (diff) | |
download | git-4c0ce0742b19c2a430b809224911b9212313265f.tar.gz |
attr.c: add push_stack() helper
There are too many repetitious "I have this new attr_stack element;
push it at the top of the stack" sequence. The new helper function
push_stack() gives us a way to express what is going on at these
places, and as a side effect, halves the number of times we mention
the attr_stack global variable.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-write.c')
0 files changed, 0 insertions, 0 deletions