aboutsummaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.diff_--patch-with-stat_initial..side
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2023-02-23 20:55:00 +0000
committerJunio C Hamano <gitster@pobox.com>2023-02-23 14:25:48 -0800
commit7aed2c0565bb1a7b4524f93e35a29770286ea630 (patch)
tree67068966fb653e0e45ede511e54d1036cdac97c4 /t/t4013/diff.diff_--patch-with-stat_initial..side
parentPrepare for 2.39.3 just in case (diff)
downloadgit-7aed2c0565bb1a7b4524f93e35a29770286ea630.tar.gz
git-7aed2c0565bb1a7b4524f93e35a29770286ea630.zip
rebase -i: match whole word in is_command()
When matching an unabbreviated command is_command() only does a prefix match which means it parses "pickled" as TODO_PICK. parse_insn_line() does error out because is_command() only advances as far as the end of "pick" so it looks like the command name is not followed by a space but the error message is "missing arguments for pick" rather than telling the user that the "pickled" is not a valid command. Fix this by ensuring the match is follow by whitespace or the end of the string as we already do for abbreviated commands. The (*bol = p) at the end of the condition is a bit cute for my taste but I decided to leave it be for now. Rather than add new tests the existing tests for bad commands are adapted to use a bad command name that triggers the prefix matching bug. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--patch-with-stat_initial..side')
0 files changed, 0 insertions, 0 deletions
el/trace/blktrace.c?id=5f3394530fbe90d3bcd1c204618960bc50236578&follow=1'>blktrace: fix integer parseShaohua Li1-2/+2 2017-05-19i2c: designware: don't infer timings described by ACPI from clock rateArd Biesheuvel1-8/+10 2017-05-19arm64: dts: rockchip: fix include referenceArnd Bergmann1-1/+1 2017-05-19watchdog: bcm281xx: Fix use of uninitialized spinlock.Eric Anholt1-1/+2 2017-05-19watchdog: zx2967: remove redundant dev_err call in zx2967_wdt_probe()Wei Yongjun1-3/+1 2017-05-19iTCO_wdt: all versions count down twicePaolo Bonzini2-13/+11 2017-05-19firmware: ti_sci: fix strncat length checkArnd Bergmann1-1/+2 2017-05-19ARM: remove duplicate 'const' annotations'Arnd Bergmann6-6/+6 2017-05-19arm64: defconfig: enable options needed for QCom DB410c boardRob Herring1-0/+7 2017-05-18arm64: defconfig: sync with savedefconfigRob Herring1-61/+42