summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info/VCS_INFO_set-patch-format
AgeCommit message (Collapse)AuthorFilesLines
2022-02-2049727 (+ comment): vcs_info quilt: Pass the patches dir path to the ↵Daniel Shahaf1-1/+7
gen-applied-string, gen-unapplied-string, and set-patch-format hooks I use that in my gen-applied-string hook.
2022-01-29unposted: vcs_info: Add Vim modelinesDaniel Shahaf1-0/+2
... for consistency with all other vcs_info function files.
2020-08-0947303: vcs_info hg: Fix changing the expansion of %g (hook_com[guards]) in ↵Daniel Shahaf1-2/+4
the set-patch-format hook (regression from workers/40480). To reproduce, go to a hg repository with active mq guards and configure vcs_info as follows: zstyle '*' get-unapplied true zstyle ':vcs_info:*set-patch-format*' hooks f zstyle '*' patch-format '[%g : %G]' zstyle '*' nopatch-format '[%g : %G]' zstyle '*' formats '%m' +vi-f () { hook_com[guards]+=XXX } The regression was first released in 5.3.1-test-2, over three years ago.
2018-10-0843620 (tweaked): vcs_info git: Reverse the order patches are passed to ↵Daniel Shahaf1-0/+2
gen-unapplied-string in. This is an incompatible change; see README for details. Tweaks (relative to posted version): tweaked README, removed scalpel (debug print).
2017-02-0940492: vcs_info: Escape '%' signs in payloads.Daniel Shahaf1-0/+14
Test case: a patch whose subject is '%Sfoo%sbar'. ('S' and 's' are expandos both in prompts and in the 'formats' style.)
2017-02-0340480: vcs_info set-patch-format: Eliminate the remaining code duplication.Daniel Shahaf1-1/+12
2017-02-0340479: vcs_info set-patch-format: Prepare for more code sharing between the ↵Daniel Shahaf1-0/+3
callers. This changes hook invocation order in the hg backend.
2017-02-0340478: vcs_info set-patch-format: Guard against empty variable elision.Daniel Shahaf1-2/+2
2017-01-2540403/0004: vcs_info set-patch-format helper: Part #4.Daniel Shahaf1-0/+12
This also fixes the %a (${hook_com[all-n]}) expando in the hg backend: before this change, it counted only unapplied changes.
2017-01-2540403/0003: vcs_info set-patch-format helper: Part #3.Daniel Shahaf1-0/+9
2017-01-2540403/0002: vcs_info set-patch-format helper: Part #2.Daniel Shahaf1-0/+10
Not all callers reset ${hook_com}, but those that don't, immediately overwrite it a few lines later.
2017-01-2540403/0001: vcs_info set-patch-format helper: Part #1.Daniel Shahaf1-0/+20