diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2015-09-10 21:18:18 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-17 10:02:48 -0700 |
commit | 574e96a2418cce16934f2b6e20a0af5ff5f85c92 (patch) | |
tree | 4cc9c9a64c8579515511009209cef8280fb43696 /Documentation/RelNotes/1.7.5.4.txt | |
parent | ref-filter: move `struct atom_value` to ref-filter.c (diff) | |
download | tgif-574e96a2418cce16934f2b6e20a0af5ff5f85c92.tar.xz |
ref-filter: introduce ref_formatting_state and ref_formatting_stack
Introduce ref_formatting_state which will hold the formatted output
strbuf instead of directly printing to stdout. This will help us in
creating modifier atoms which modify the format specified before
printing to stdout.
Implement a stack machinery for ref_formatting_state, this allows us
to push and pop elements onto the stack. Whenever we pop an element
from the stack, the strbuf from that element is appended to the strbuf
of the next element on the stack, this will allow us to support
nesting of modifier atoms.
Rename some functions to reflect the changes made:
print_value() -> append_atom()
emit() -> append_literal()
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.5.4.txt')
0 files changed, 0 insertions, 0 deletions