summaryrefslogtreecommitdiff
path: root/Documentation/technical/api-credentials.txt
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-11-18 11:20:04 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-18 20:38:40 +0900
commit782c030ea21f02a5dfab3fd023e14084ebeff4dc (patch)
treec8e55101eac5d31163c2ea5fa77ff433fbf20a52 /Documentation/technical/api-credentials.txt
parentMerge branch 'sd/branch-copy' (diff)
downloadtgif-782c030ea21f02a5dfab3fd023e14084ebeff4dc.tar.xz
config: flip return value of write_section()
d9bd4cbb9cc (config: flip return value of store_write_*()) made write_section() follow the convention of write(2) to return -1 on error and the number of written bytes on success. 3b48045c6c7 (Merge branch 'sd/branch-copy') changed it back to returning 0 on error and 1 on success, but left its callers still checking for negative values. Let write_section() follow the convention of write(2) again to meet the expectations of its callers. Reported-by: Jeff King <peff@peff.net> Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/technical/api-credentials.txt')
0 files changed, 0 insertions, 0 deletions