summaryrefslogtreecommitdiff
path: root/Functions/VCS_Info
AgeCommit message (Collapse)AuthorFilesLines
2017-02-04unposted: vcs_info git: Fix typo in manual.Daniel Shahaf1-0/+1
2017-02-0340480: vcs_info set-patch-format: Eliminate the remaining code duplication.Daniel Shahaf4-30/+19
2017-02-0340479: vcs_info set-patch-format: Prepare for more code sharing between the ↵Daniel Shahaf4-6/+12
callers. This changes hook invocation order in the hg backend.
2017-02-0340481: vcs_info hg: Pass arguments to the set-patch-format hook.Daniel Shahaf1-1/+1
2017-02-0340478: vcs_info set-patch-format: Guard against empty variable elision.Daniel Shahaf1-2/+2
2017-02-0340476: vcs_info $backend_misc: Document at the right point, provide in quilt ↵Daniel Shahaf1-0/+1
'standalone' mode.
2017-01-2540403/0004: vcs_info set-patch-format helper: Part #4.Daniel Shahaf4-20/+20
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 Shahaf4-21/+15
2017-01-2540403/0002: vcs_info set-patch-format helper: Part #2.Daniel Shahaf4-21/+16
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 Shahaf5-28/+24
2017-01-2540401: vcs_info git: Fix the %c patch-format expando.Daniel Shahaf1-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).
2017-01-2540392: vcs_info patch2subject: Support `git show` output.Daniel Shahaf1-0/+17
2016-12-1640149: vcs_info git: Avoid a fork.Daniel Shahaf1-1/+1
2016-12-04unposted: vcs_info git: Handle rebase-apply sequences with >=10000 patches.Daniel Shahaf1-3/+6
Review-by: Frank Terbeck
2016-12-0440074: vcs_info git: rfc822-unfold rebase-apply patch subjects when ↵Daniel Shahaf1-8/+7
msg-clean is unavailable. Example (in this repository): git -c merge.merge-changelog.driver=/bin/false rebase --onto=1955cce^^ 1955cce^ 1955cce
2016-12-03Get subject of current patch in rebase-apply modeDaniel Hahler1-0/+9
2016-12-01unposted: vcs_info: Break out VCS_INFO_quilt-patch2subject into ↵Daniel Shahaf3-48/+52
VCS_INFO_patch2subject ... so other places can use it; compare 40030 in the 39990 thread.
2016-10-3139786: vcs_info (hg): Use native hexdump implementation instead of external ↵Daniel Shahaf3-3/+21
command. Fixes issue whereby the external command would print "*" for repeated octets. Includes comment change, cf 39790.
2016-09-2439423: vcs_info git: Produce nicer applied-string messages for 'exec' actions.Daniel Shahaf1-2/+6
This changes the behaviour on "unknown" git-rebase actions (those other than pick/reword/edit/fixup/squash/execute).
2016-08-2239046 + 39061: New :P history modifier.Daniel Shahaf1-1/+1
2016-06-0638610: vcs_info quilt: Extract a patch subject, 2.0.Daniel Shahaf1-4/+38
2016-06-0638609: vcs_info quilt: Factor out a helper function. No functional change.Daniel Shahaf1-13/+22
2016-01-15unposted: Fix typo in comment.Daniel Shahaf1-2/+2
2016-01-1537612: vcs_info git: Set $git_patches_unapplied correctly for 'rebase-apply' ↵Daniel Shahaf1-1/+3
case. This manifested, e.g., in 'git am' of a single patch that had a conflict.
2015-12-3037451: vcs_info: Declare "msgs" in early contextFrank Terbeck1-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.
2015-12-2337345: VCS_INFO functions break with setopt no_unsetPhilip Sequeira2-2/+2
With setopt no_unset in my config file, vcs_info fails with: VCS_INFO_maxexports:7: vcs: parameter not set
2015-12-0837347: Remove incorrect local for msgs in VCS infoPeter Stephenson1-1/+0
2015-11-3037252: vcs_info git: Compute %b correctly with "rebase --onto" of detached ↵Daniel Shahaf1-1/+2
heads. (Follow-up to 36725.)
2015-11-2237186: a couple more WARN_CREATE_GLOBAL fixesPeter Stephenson1-0/+1
2015-11-1337025: vcs_info git: Add a cherry-pick patch-formatDaniel Shahaf1-0/+22
2015-10-2436913 + 36945: vcs_info quilt: Pass patch subject lines to gen-applied-stringDaniel Shahaf1-0/+30
The format used is '${patchname} ${subject}', which is analogous to the git backend.
2015-10-2436912: vcs_info quilt: Tolerate being in child of .pc's parentDaniel Shahaf1-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.
2015-10-1836888: vcs_info: Prevent warn_create_global warning with '-preinit-' stateFrank Terbeck1-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.
2015-10-1136832: vcs_info: Remove dependency on "seq"Frank Terbeck1-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.
2015-10-1136830: vcs_info: Silence an error message with new git versionsFrank Terbeck1-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.
2015-09-3036725: vcs_info git: Compute %b correctly when "git am"-ing onto detached heads.Daniel Shahaf1-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.
2015-09-3036725: vcs_info git: Compute %b correctly when rebasing detached heads.Daniel Shahaf1-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.
2015-09-3036725: vcs_info git: Compute %b correctly when merging to detached heads.Daniel Shahaf1-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.
2015-09-2836601: vcs_info: handle missing .git/rebase-apply/{next,msg-clean}Daniel Hahler1-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.
2015-09-0536410: vcs_info git: Present merge heads as patchesDaniel Shahaf1-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
2015-08-1836209: vcs_info: avoid grep error message when file is missingbrian m. carlson1-1/+3
When running git rebase -m and a conflict occurs, the git-rebase-todo file is not present. This leads to an error from grep every time the shell prompt is printed when vcs_info is enabled. Avoid this message by checking if the file exists before trying to grep it.
2015-08-1236077: vcs_info: stop exporting everythingMikael Magnusson12-21/+22
2015-03-0934673: vcs_info git: Fix error message when rebase hasn't startedDaniel Shahaf1-0/+1
2015-01-25vcs_info hg: Support inactive bookmarksDaniel Shahaf1-0/+17
(Similar to git detached heads)
2015-01-22PATCH: 34333: vcs_info quilt: fix unapplied detection in subdirMarc Finet1-13/+17
When patches are applied, let quilt use .pc without forcing the patch directory, this will fix the unapplied detection when being in subdir. When no patches are applied, use zstyle quilt-patch-dir then QUILT_PATCHES then "patches" for path to search for patches. Note: prefer setting quilt-patch-dir rather than QUILT_PATCHES for absolute path because when patches are applied, quilt unapplied will not return the correct list (i.e. the whole list rather that the one specified by .pc/.quilt_series).
2014-10-0933405: vcs_info: Make sure maxexports is set when VCS_INFO_set is calledFrank Terbeck1-0/+1
Reported-by: From: Marco Hinz <mh.codebro@gmail.com>
2014-10-0933391: vcs_info git: fix applied patch detection on git amMarc Finet1-10/+7
git-am also uses .git/rebase-apply for patch list but the file original-commit does not exist (as no commit exist). This patch handles both git rebase and git am. Also: - get the first line (rather than the first char) when the message contains only one line; - remove unused function (ironically that should have been used here).
2014-09-2933277: Fix VCS_INFO_reposub's command expansionFrank Terbeck1-3/+4
Reported-by: Marco Hinz <mh.codebro@gmail.com>
2014-09-2233217: vcs_info: use `--ignore-submodules=dirty` with diff/diff-indexDaniel Hahler1-3/+3
This will detect changes to submodules from the superproject's perspective, e.g. after `git rm submodule`. >From GIT-DIFF-INDEX(1)/GIT-DIFF(1): Using "dirty" ignores all changes to the work tree of submodules, only changes to the commits stored in the superproject are shown (this was the behavior until 1.7.0).
2014-09-1633184: vcs_info git: consider patches for rebaseMarc Finet1-42/+74
Since a rebase contains a list of patches to re-apply, re-use the facility for stgit to have the same mechanism. The patch list given to the gen-{un,}applied-string hooks is an array with the sha1 and the subject of the commit. On rebase merge, the applied patches prior to current contains only a number and "?".