aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-03-29 17:39:07 +0700
committerJunio C Hamano <gitster@pobox.com>2019-04-02 13:56:59 +0900
commit3ec37ad13dea55f6a614753accc7fad84cb170be (patch)
treebf3fb6056dc4d0e9e2513de09f5518970a94ec28 /builtin/commit.c
parentswitch: better names for -b and -B (diff)
downloadgit-3ec37ad13dea55f6a614753accc7fad84cb170be.tar.gz
git-3ec37ad13dea55f6a614753accc7fad84cb170be.zip
switch: add --discard-changes
--discard-changes is a better name than --force for this option since it's what really happens. --force is turned to an alias for --discard-changes. But it's meant to be an alias for potentially more force options in the future. Side note. It's not obvious from the patch but --discard-changes also affects submodules if --recurse-submodules is used. The knob to force updating submodules is hidden behind unpack-trees.c Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions