[PATCH 0/2] Argument order shouldn't matter
From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:42:16
From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:42:16
Many of the C-programs in the git suite are sensitive to argument ordering. That's a bit backwards for a modern tool-kit. The first of these two patches provides some simple library code to handle arbitrary pointers in a stack-like manner, although in addition to stack_push() and stack_pop(), with their obvious meanings, there's also stack_pull() which fetches from the bottom of the stack. Err... that is, it fetches the least recently pushed item first. The second patch is just an example of its implementation so we can get the discussions going. -- Makefile | 4 ++-- describe.c | 15 ++++++++++----- stack.c | 42 ++++++++++++++++++++++++++++++++++++++++++ stack.h | 9 +++++++++ 4 files changed, 63 insertions(+), 7 deletions(-) -- git version 1.1.0