aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-09-13 13:17:57 -0400
committerJunio C Hamano <gitster@pobox.com>2017-09-14 15:18:00 +0900
commitd9bd4cbb9cce9f872cc4427d1c27a62c6768b12a (patch)
tree019bcc8e3e8d5a4d3e97061ecb2441e6710dc632 /commit-graph.c
parentnotes-merge: use ssize_t for write_in_full() return value (diff)
downloadgit-d9bd4cbb9cce9f872cc4427d1c27a62c6768b12a.tar.gz
git-d9bd4cbb9cce9f872cc4427d1c27a62c6768b12a.zip
config: flip return value of store_write_*()
The store_write_section() and store_write_pairs() functions are basically high-level wrappers around write(). But their return values are flipped from our usual convention, using "1" for success and "0" for failure. Let's flip them to follow the usual write() conventions and update all callers. As these are local to config.c, it's unlikely that we'd have new callers in any topics in flight (which would be silently broken by our change). But just to be on the safe side, let's rename them to just write_section() and write_pairs(). That also accentuates their relationship with write(). Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
/td>Martin Storsjö1-3/+12 2009-11-23t/gitweb-lib: Split HTTP response with non-GNU sedBrian Gernhardt1-2/+12 2009-11-23pack-objects: split implications of --all-progress from progress activationNicolas Pitre4-5/+20 2009-11-23instaweb: restart server if already runningStephen Boyd1-0/+5 2009-11-23prune-packed: only show progress when stderr is a ttyJeff King1-1/+1 2009-11-23remote-curl.c: fix rpc_out()Tay Ray Chuan1-1/+1 2009-11-23Protect scripted Porcelains from GREP_OPTIONS insanityJunio C Hamano8-18/+26 2009-11-23mergetool--lib: simplify guess_merge_tool()René Scharfe1-7/+6 2009-11-23strbuf_add_wrapped_text(): skip over colour codesRené Scharfe2-4/+22 2009-11-23t4014-format-patch: do not assume 'test' is available as non-builtinJohannes Sixt1-4/+2 2009-11-23Fix over-simplified documentation for 'git log -z'Björn Gustavsson1-5/+7