Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 43585: vcs_info svn: Recognize working copies in need of an upgrade. | Daniel Shahaf | 2018-10-07 | 1 | -1/+10 |
| | |||||
* | unposted: Indicate which use-case each branch handles. | Daniel Shahaf | 2018-10-02 | 1 | -1/+3 |
| | |||||
* | 43313 (log message tweaked): vcs_info git: For the branch name, try to find ↵ | Daniel Shahaf | 2018-08-24 | 1 | -0/+4 |
| | | | | | | | | | | | | a symbolic name before falling back to a raw commit hash. Ask git-describe(1) and git-name-rev(1) to compute a gitrevisions(7) name in terms of a branch or tag that contains (= is a descendant of, is younger than) HEAD. In this repository, the output changes from "9567bfe..." to "master~1" or "remotes/origin/HEAD~1". This would also happen during bisects, e.g., "bisect/bad~22". | ||||
* | 43314: vcs_info git: Flatten a nested if. | Daniel Shahaf | 2018-08-24 | 1 | -9/+4 |
| | | | | No functional change. | ||||
* | 43030: Replace VCS_INFO_realpath() by :P | dana | 2018-06-16 | 7 | -20/+11 |
| | |||||
* | unposted: vcs_info: Add docstrings to the internal functions ↵ | Daniel Shahaf | 2017-12-30 | 2 | -1/+8 |
| | | | | VCS_INFO_formats and VCS_INFO_set. | ||||
* | 41952: Use HGPLAIN instead of HGRCPATH in VCS_INFO_get_data_hg | Alexey Sokolov | 2017-10-25 | 1 | -2/+2 |
| | | | | | | | | | | | Fixes prompt indicator in case if the repository requires a non-default feature. With HGRCPATH, it results in: abort: repository requires features unknown to this Mercurial: ... (see https://mercurial-scm.org/wiki/MissingRequirement for more information) Which, in turn, results in "default" getting reported regardless of what is the current state of the repo. | ||||
* | 41565: vcs_info patch2subject: Support `svn log -r N --diff` output. | Daniel Shahaf | 2017-08-22 | 1 | -2/+9 |
| | |||||
* | Julien Nicoulaud: 40586: discard stderr | Barton E. Schaefer | 2017-02-21 | 1 | -1/+1 |
| | |||||
* | 40492: vcs_info: Escape '%' signs in payloads. | Daniel Shahaf | 2017-02-09 | 2 | -0/+15 |
| | | | | | Test case: a patch whose subject is '%Sfoo%sbar'. ('S' and 's' are expandos both in prompts and in the 'formats' style.) | ||||
* | unposted: vcs_info git: Fix typo in manual. | Daniel Shahaf | 2017-02-04 | 1 | -0/+1 |
| | |||||
* | 40480: vcs_info set-patch-format: Eliminate the remaining code duplication. | Daniel Shahaf | 2017-02-03 | 4 | -30/+19 |
| | |||||
* | 40479: vcs_info set-patch-format: Prepare for more code sharing between the ↵ | Daniel Shahaf | 2017-02-03 | 4 | -6/+12 |
| | | | | | | callers. This changes hook invocation order in the hg backend. | ||||
* | 40481: vcs_info hg: Pass arguments to the set-patch-format hook. | Daniel Shahaf | 2017-02-03 | 1 | -1/+1 |
| | |||||
* | 40478: vcs_info set-patch-format: Guard against empty variable elision. | Daniel Shahaf | 2017-02-03 | 1 | -2/+2 |
| | |||||
* | 40476: vcs_info $backend_misc: Document at the right point, provide in quilt ↵ | Daniel Shahaf | 2017-02-03 | 1 | -0/+1 |
| | | | | 'standalone' mode. | ||||
* | 40403/0004: vcs_info set-patch-format helper: Part #4. | Daniel Shahaf | 2017-01-25 | 4 | -20/+20 |
| | | | | | This also fixes the %a (${hook_com[all-n]}) expando in the hg backend: before this change, it counted only unapplied changes. | ||||
* | 40403/0003: vcs_info set-patch-format helper: Part #3. | Daniel Shahaf | 2017-01-25 | 4 | -21/+15 |
| | |||||
* | 40403/0002: vcs_info set-patch-format helper: Part #2. | Daniel Shahaf | 2017-01-25 | 4 | -21/+16 |
| | | | | | Not all callers reset ${hook_com}, but those that don't, immediately overwrite it a few lines later. | ||||
* | 40403/0001: vcs_info set-patch-format helper: Part #1. | Daniel Shahaf | 2017-01-25 | 5 | -28/+24 |
| | |||||
* | 40401: vcs_info git: Fix the %c patch-format expando. | Daniel Shahaf | 2017-01-25 | 1 | -3/+3 |
| | | | | | | | | Before this change, ${git_unapplied_s} was unused and the %c (${hook_com[unapplied]}) expando evaluated to the number of digits in the string returned by the gen-unapplied-string hook (or to the number of digits in the number of unapplied patches, when there was no such hook). | ||||
* | 40392: vcs_info patch2subject: Support `git show` output. | Daniel Shahaf | 2017-01-25 | 1 | -0/+17 |
| | |||||
* | 40149: vcs_info git: Avoid a fork. | Daniel Shahaf | 2016-12-16 | 1 | -1/+1 |
| | |||||
* | unposted: vcs_info git: Handle rebase-apply sequences with >=10000 patches. | Daniel Shahaf | 2016-12-04 | 1 | -3/+6 |
| | | | | Review-by: Frank Terbeck | ||||
* | 40074: vcs_info git: rfc822-unfold rebase-apply patch subjects when ↵ | Daniel Shahaf | 2016-12-04 | 1 | -8/+7 |
| | | | | | | | | msg-clean is unavailable. Example (in this repository): git -c merge.merge-changelog.driver=/bin/false rebase --onto=1955cce^^ 1955cce^ 1955cce | ||||
* | Get subject of current patch in rebase-apply mode | Daniel Hahler | 2016-12-03 | 1 | -0/+9 |
| | |||||
* | unposted: vcs_info: Break out VCS_INFO_quilt-patch2subject into ↵ | Daniel Shahaf | 2016-12-01 | 3 | -48/+52 |
| | | | | | | VCS_INFO_patch2subject ... so other places can use it; compare 40030 in the 39990 thread. | ||||
* | 39786: vcs_info (hg): Use native hexdump implementation instead of external ↵ | Daniel Shahaf | 2016-10-31 | 3 | -3/+21 |
| | | | | | | | | | command. Fixes issue whereby the external command would print "*" for repeated octets. Includes comment change, cf 39790. | ||||
* | 39423: vcs_info git: Produce nicer applied-string messages for 'exec' actions. | Daniel Shahaf | 2016-09-24 | 1 | -2/+6 |
| | | | | | This changes the behaviour on "unknown" git-rebase actions (those other than pick/reword/edit/fixup/squash/execute). | ||||
* | 39046 + 39061: New :P history modifier. | Daniel Shahaf | 2016-08-22 | 1 | -1/+1 |
| | |||||
* | 38610: vcs_info quilt: Extract a patch subject, 2.0. | Daniel Shahaf | 2016-06-06 | 1 | -4/+38 |
| | |||||
* | 38609: vcs_info quilt: Factor out a helper function. No functional change. | Daniel Shahaf | 2016-06-06 | 1 | -13/+22 |
| | |||||
* | unposted: Fix typo in comment. | Daniel Shahaf | 2016-01-15 | 1 | -2/+2 |
| | |||||
* | 37612: vcs_info git: Set $git_patches_unapplied correctly for 'rebase-apply' ↵ | Daniel Shahaf | 2016-01-15 | 1 | -1/+3 |
| | | | | | | case. This manifested, e.g., in 'git am' of a single patch that had a conflict. | ||||
* | 37451: vcs_info: Declare "msgs" in early context | Frank Terbeck | 2015-12-30 | 1 | -1/+1 |
| | | | | | | The parameter *is* being declared with the redefinition of the function, but not in its initial form, which gets you a warning about the parameter being defined globally. This fixes it. | ||||
* | 37345: VCS_INFO functions break with setopt no_unset | Philip Sequeira | 2015-12-23 | 2 | -2/+2 |
| | | | | | With setopt no_unset in my config file, vcs_info fails with: VCS_INFO_maxexports:7: vcs: parameter not set | ||||
* | 37347: Remove incorrect local for msgs in VCS info | Peter Stephenson | 2015-12-08 | 1 | -1/+0 |
| | |||||
* | 37252: vcs_info git: Compute %b correctly with "rebase --onto" of detached ↵ | Daniel Shahaf | 2015-11-30 | 1 | -1/+2 |
| | | | | heads. (Follow-up to 36725.) | ||||
* | 37186: a couple more WARN_CREATE_GLOBAL fixes | Peter Stephenson | 2015-11-22 | 1 | -0/+1 |
| | |||||
* | 37025: vcs_info git: Add a cherry-pick patch-format | Daniel Shahaf | 2015-11-13 | 1 | -0/+22 |
| | |||||
* | 36913 + 36945: vcs_info quilt: Pass patch subject lines to gen-applied-string | Daniel Shahaf | 2015-10-24 | 1 | -0/+30 |
| | | | | The format used is '${patchname} ${subject}', which is analogous to the git backend. | ||||
* | 36912: vcs_info quilt: Tolerate being in child of .pc's parent | Daniel Shahaf | 2015-10-24 | 1 | -0/+1 |
| | | | | | Without this, gen-applied-string would only be set when .pc is a child of cwd, not when it is a child of an ancestor of cwd. | ||||
* | 36888: vcs_info: Prevent warn_create_global warning with '-preinit-' state | Frank Terbeck | 2015-10-18 | 1 | -0/+2 |
| | | | | | | | | | | | This is related to 33405. Turns out that not all other calls to VCS_INFO_set are okay: With recent zsh versions the early call to that function with the '-preinit-' argument causes a warning like this: VCS_INFO_set:9: math parameter maxexports created globally in function VCS_INFO_set This fixes it. | ||||
* | 36832: vcs_info: Remove dependency on "seq" | Frank Terbeck | 2015-10-11 | 1 | -2/+3 |
| | | | | | | The "seq" utility is usually available on GNU systems only. This exchanges calls to seq with pure zsh features. Also: Less forks are good. | ||||
* | 36830: vcs_info: Silence an error message with new git versions | Frank Terbeck | 2015-10-11 | 1 | -12/+22 |
| | | | | | | | | | | | | Mikael informs me on IRC, that in new versions of git (he used 2.6.1) where the "am" subcommand is now a builtin, a file that is used by the git backend of vcs_info (namely .git/rebase-apply/msg-clean) is not available anymore, leading to an annoying error message: VCS_INFO_get_data_git:232: no such file or directory: .git/rebase-apply/msg-clean This patch checks for the availabiliy of the file before using it, and adjusts the value of the dependant values accordingly. | ||||
* | 36725: vcs_info git: Compute %b correctly when "git am"-ing onto detached heads. | Daniel Shahaf | 2015-09-30 | 1 | -0/+1 |
| | | | | | | | | Before this patch, $gitbranch would be set to empty, which caused VCS_INFO_get_data_git to early out with a failure status¹, consequently $vcs_info_msg_0_ would be empty. ¹ via the 'if [[ -z ]]' block around line 170. | ||||
* | 36725: vcs_info git: Compute %b correctly when rebasing detached heads. | Daniel Shahaf | 2015-09-30 | 1 | -0/+4 |
| | | | | | | This sets the %b expando to the hash of the before-the-merge HEAD, rather than to the literal string "detached HEAD". That hash is already available via the gen-applied-string hook. | ||||
* | 36725: vcs_info git: Compute %b correctly when merging to detached heads. | Daniel Shahaf | 2015-09-30 | 1 | -1/+1 |
| | | | | | The %b expando should be the hash prior to the merge. The hash of the merge result is available as the %i expando and via the gen-applied-string hook. | ||||
* | 36601: vcs_info: handle missing .git/rebase-apply/{next,msg-clean} | Daniel Hahler | 2015-09-28 | 1 | -11/+14 |
| | | | | | | | When pressing Ctrl-C after `git am`, only `last` exists in `.git/rebase-apply/`, which is empty. This patch fixes it to fall back to "no patch applied" then. | ||||
* | 36410: vcs_info git: Present merge heads as patches | Daniel Shahaf | 2015-09-05 | 1 | -0/+17 |
| | | | | | | | This shows, during 'git merge', the revision hashes of the "remote" head (the one that will become second parent of the commit) in the %m expando. Review-by: Frank Terbeck |