aboutsummaryrefslogtreecommitdiff
path: root/git-gui/lib/error.tcl
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-10-31 10:58:16 +0100
committerJunio C Hamano <gitster@pobox.com>2017-11-01 10:53:19 +0900
commitc8cee96e8a8de2e9c6f12bfac8295f1b9ee29112 (patch)
tree89cdb08974add4b354fe975d2bfe571ca010a846 /git-gui/lib/error.tcl
parent73646bfdcb38114a4d9242a02fc180a9877e01bf (diff)
downloadgit-c8cee96e8a8de2e9c6f12bfac8295f1b9ee29112.tar.gz
git-c8cee96e8a8de2e9c6f12bfac8295f1b9ee29112.tar.xz
sequencer: use O_TRUNC to truncate files
Cut off any previous content of the file to be rewritten by passing the flag O_TRUNC to open(2) instead of calling ftruncate(2) at the end. That's easier and shorter. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/error.tcl')
0 files changed, 0 insertions, 0 deletions