summary refs log tree commit diff
path: root/Functions/VCS_Info
Commit message (Collapse)AuthorAgeFilesLines
* 43879: vcs_info git: Fix fatal error in VCS_INFO_git_getbranch in corner caseDaniel Shahaf2018-12-131-4/+6
| | | | | | | | | | | | | Before this commit, the following use-case: git checkout foo^ git show foo | git am would result in a fatal error, with vcs_info_msg_N_ not set: VCS_INFO_git_getbranch:18: no such file or directory: .git/rebase-apply/onto Now they are set correctly, and HEAD's commit hash is used.
* 43620 (tweaked): vcs_info git: Reverse the order patches are passed to ↵Daniel Shahaf2018-10-082-1/+4
| | | | | | | | gen-unapplied-string in. This is an incompatible change; see README for details. Tweaks (relative to posted version): tweaked README, removed scalpel (debug print).
* 43617: vcs_info git: During a non-interactive rebase of a detached head, ↵Daniel Shahaf2018-10-081-1/+1
| | | | | | | | | | | | | computer the %b expando correctly. Before this commit, the value of %b was the hash of the commit from the "source" side of the rebase, from .git/rebase-apply/orig-head and .git/rebase-apply/original-commit. This broke the invariant that %b expands to a git-rev-parse(1) expression resolving to what %r expands to. Use .git/rebase-apply/onto instead as, empirically, it contains the correct value.
* 43619: vcs_info git: In non-interactive rebases, always set ↵Daniel Shahaf2018-10-081-10/+3
| | | | $hook_com[git_patches_applied] to a string of the form 'foo bar', never just 'foo'.
* 43618: vcs_info: Don't redefine helper functions on every execution of the ↵Daniel Shahaf2018-10-084-2/+13
| | | | | | | autoloadable outer function. This allows enabling tracing of the helper functions without fned'ing the outer function.
* 43587: vcs_info git: In 'git rebase -i', when computing subjects of ↵Daniel Shahaf2018-10-071-0/+19
| | | | applied-patches, handle an edge case where the subject is not available.
* 43588: vcs_info git: Make sure applied-patches is of the form "$hash ↵Daniel Shahaf2018-10-071-0/+5
| | | | | | | | | | | | $subject" --- that is, has a space and a non-empty second argument --- even with future 'git rebase -i' verbs. Use of '?' is consistent with these precedents: Backends/VCS_INFO_get_data_git:220: printf -v "git_patches_applied[$p]" "%04d ?" "$p" Backends/VCS_INFO_get_data_git:242: git_patches_applied+=("? $subject") Backends/VCS_INFO_get_data_git:244: git_patches_applied+=("?") VCS_INFO_quilt:160: applied[$i]+=" ?" VCS_INFO_quilt:168: unapplied[$i]+=" ?"
* 43586: vcs_info git: Reformat to minimise next diff. No functional change.Daniel Shahaf2018-10-071-2/+13
|
* 43585: vcs_info svn: Recognize working copies in need of an upgrade.Daniel Shahaf2018-10-071-1/+10
|
* unposted: Indicate which use-case each branch handles.Daniel Shahaf2018-10-021-1/+3
|
* 43313 (log message tweaked): vcs_info git: For the branch name, try to find ↵Daniel Shahaf2018-08-241-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 Shahaf2018-08-241-9/+4
| | | | No functional change.
* 43030: Replace VCS_INFO_realpath() by :Pdana2018-06-167-20/+11
|
* unposted: vcs_info: Add docstrings to the internal functions ↵Daniel Shahaf2017-12-302-1/+8
| | | | VCS_INFO_formats and VCS_INFO_set.
* 41952: Use HGPLAIN instead of HGRCPATH in VCS_INFO_get_data_hgAlexey Sokolov2017-10-251-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 Shahaf2017-08-221-2/+9
|
* Julien Nicoulaud: 40586: discard stderrBarton E. Schaefer2017-02-211-1/+1
|
* 40492: vcs_info: Escape '%' signs in payloads.Daniel Shahaf2017-02-092-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 Shahaf2017-02-041-0/+1
|
* 40480: vcs_info set-patch-format: Eliminate the remaining code duplication.Daniel Shahaf2017-02-034-30/+19
|
* 40479: vcs_info set-patch-format: Prepare for more code sharing between the ↵Daniel Shahaf2017-02-034-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 Shahaf2017-02-031-1/+1
|
* 40478: vcs_info set-patch-format: Guard against empty variable elision.Daniel Shahaf2017-02-031-2/+2
|
* 40476: vcs_info $backend_misc: Document at the right point, provide in quilt ↵Daniel Shahaf2017-02-031-0/+1
| | | | 'standalone' mode.
* 40403/0004: vcs_info set-patch-format helper: Part #4.Daniel Shahaf2017-01-254-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 Shahaf2017-01-254-21/+15
|
* 40403/0002: vcs_info set-patch-format helper: Part #2.Daniel Shahaf2017-01-254-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 Shahaf2017-01-255-28/+24
|
* 40401: vcs_info git: Fix the %c patch-format expando.Daniel Shahaf2017-01-251-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 Shahaf2017-01-251-0/+17
|
* 40149: vcs_info git: Avoid a fork.Daniel Shahaf2016-12-161-1/+1
|
* unposted: vcs_info git: Handle rebase-apply sequences with >=10000 patches.Daniel Shahaf2016-12-041-3/+6
| | | | Review-by: Frank Terbeck
* 40074: vcs_info git: rfc822-unfold rebase-apply patch subjects when ↵Daniel Shahaf2016-12-041-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 modeDaniel Hahler2016-12-031-0/+9
|
* unposted: vcs_info: Break out VCS_INFO_quilt-patch2subject into ↵Daniel Shahaf2016-12-013-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 Shahaf2016-10-313-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 Shahaf2016-09-241-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 Shahaf2016-08-221-1/+1
|
* 38610: vcs_info quilt: Extract a patch subject, 2.0.Daniel Shahaf2016-06-061-4/+38
|
* 38609: vcs_info quilt: Factor out a helper function. No functional change.Daniel Shahaf2016-06-061-13/+22
|
* unposted: Fix typo in comment.Daniel Shahaf2016-01-151-2/+2
|
* 37612: vcs_info git: Set $git_patches_unapplied correctly for 'rebase-apply' ↵Daniel Shahaf2016-01-151-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 contextFrank Terbeck2015-12-301-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_unsetPhilip Sequeira2015-12-232-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 infoPeter Stephenson2015-12-081-1/+0
|
* 37252: vcs_info git: Compute %b correctly with "rebase --onto" of detached ↵Daniel Shahaf2015-11-301-1/+2
| | | | heads. (Follow-up to 36725.)
* 37186: a couple more WARN_CREATE_GLOBAL fixesPeter Stephenson2015-11-221-0/+1
|
* 37025: vcs_info git: Add a cherry-pick patch-formatDaniel Shahaf2015-11-131-0/+22
|
* 36913 + 36945: vcs_info quilt: Pass patch subject lines to gen-applied-stringDaniel Shahaf2015-10-241-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 parentDaniel Shahaf2015-10-241-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.