]> git.ipfire.org Git - thirdparty/git.git/commit - attr.c
attr.c: add push_stack() helper
authorJunio C Hamano <gitster@pobox.com>
Sat, 28 Jan 2017 02:01:51 +0000 (18:01 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2017 21:46:52 +0000 (13:46 -0800)
commit4c0ce0742b19c2a430b809224911b9212313265f
treebbc436fc50fe4c90351ab21e0e19dec4bb4004c7
parent860a74d9d909002b16c50b58050908756065125d
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>
attr.c