]> git.ipfire.org Git - thirdparty/git.git/commit - advice.h
am: move advice.amWorkDir parsing back to advice.c
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 26 May 2018 13:55:27 +0000 (15:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 May 2018 05:51:28 +0000 (14:51 +0900)
commit431bb23a271ef45e22ad4a2def2e0ba0a1954e98
treea07933e455138fb49c7b35f63bd2816dd7cc06c3
parentfb6fbffbdae719805fbf7a39ca268dad17696f82
am: move advice.amWorkDir parsing back to advice.c

The only benefit from this move (apart from cleaner code) is that
advice.amWorkDir should now show up in `git help --config`. There
should be no regression since advice config is always read by the
git_default_config().

While at there, use advise() like other code. We now get "hint: "
prefix and the output is stderr instead of stdout (which is also the
reason for the test update because stderr is checked in a following
test and the extra advice can fail it).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
advice.c
advice.h
builtin/am.c
t/t4254-am-corrupt.sh