about summary refs log tree commit diff
path: root/Functions
Commit message (Collapse)AuthorAgeFilesLines
* github #48/0002: vcs_info git: properly detect bare repositoriesbrian m. carlson2020-02-171-0/+4
| | | | | | | | | | | We currently detect Git repositories by finding the top level of the working tree, and if we fail to detect it, assume that we're not in a repository. However, there's a case we don't consider: a bare repository. Let's detect if the user is in a bare repository by checking if gitdir is set, and if so, using that if there is no working tree. We now detect bare Git repositories with vcs_info, as expected.
* github #48/0001: vcs_info git: avoid warnings in bare repositoriesbrian m. carlson2020-02-171-1/+1
| | | | | | | | | | | | Git 2.25 introduced a change to how git rev-parse --show-toplevel behaves. Traditionally, it succeeded with no output if the user was in a bare repository. Now it dies, printing an error to standard error. Consequently, when the user is in a bare repository with a newer Git, vcs_info prints noisily to standard error. While this is functionally harmless, it is annoying for the shell to print messages from Git every time the prompt is printed, so let's silence the error message.
* 45269: Fix misspellings in completions and elsewhere.Jens Schleusener2020-01-091-1/+1
|
* 45239: Remove 'appendhistory' from zsh-newuser-installAndrey Butirsky2020-01-051-1/+0
| | | | It is on by default, and new users are unlikely to want to change it.
* 45114: vcs_info quilt: Improve support for svn-style patch headers.Daniel Shahaf2019-12-221-7/+13
| | | | | | | | | | Additional lines between the |-separated header line and the actual log message, as generated by 'svn log -v' and 'svn log -g', are now supported. This change affects you if you have quilt patches with 'svn log'-style information in their headers, regardless of whether you use quilt standalone, quilt over svn, or quilt over some other VCS.
* 45003: Fix more documentation typosMartijn Dekker2019-12-112-3/+3
|
* 44960: vcs_info cvs: Fix infinite loop when /CVS exists.Daniel Shahaf2019-12-031-3/+9
|
* 44961: vcs_info svn: Fix infinite loop when /.svn exists.Daniel Shahaf2019-12-031-5/+7
|
* 44962: vcs_info: Document internal function and variableDaniel Shahaf2019-12-032-0/+18
|
* 44958: vcs_info quilt: Avoid forksDaniel Shahaf2019-11-291-5/+5
|
* 44945: vcs_info git: Optimize detection by running fewer external commands.Daniel Shahaf2019-11-291-2/+1
|
* unposted (see 44772): quote the string argument to zle -UBart Schaefer2019-09-241-2/+2
|
* 44305: Fix zsh_directory_name_genericPeter Stephenson2019-07-101-8/+15
| | | | | Longest prefix matching was broken if there were suffixes indicating further handling.
* 43755: Fix state management for repeat uses to avoid clobbering command line ↵Bart Schaefer2019-07-081-2/+3
| | | | when NOT a repeat
* 44020: VCS_INFO_detect_p4: Fix infinite recursiondana2019-01-271-1/+0
|
* unposted, c.f. 43913: emulate -L zsh in edit-command-linePeter Stephenson2018-12-191-0/+2
| | | | Otherwise bad effects observed with GLOB_SUBST set.
* 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.
* 43779 (tweaked): add parentheses to fix expression with cprecedences option setJoey Pabalinas2018-11-081-2/+2
|
* 43685: add-zle-hook-widget: Support running under NO_UNSET ('set -u').Daniel Shahaf2018-10-141-6/+6
|
* 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.
* 43084: Variable warning suppression enhancements.Peter Stephenson2018-06-251-3/+2
| | | | | | Add vared -g option along the lines of typeset -g. Set reply safely in zsh_directory_name_cdr.
* 43030: Replace VCS_INFO_realpath() by :Pdana2018-06-167-20/+11
|
* users/23434: initialise UNDO_LIMIT_NO so that an initial undo doesn't clear ↵Oliver Kiddle2018-06-071-2/+8
| | | | the whole edit buffer
* 42929 (tweaked): additional default bindings in zed.Sebastian Gniazdowski2018-06-051-5/+26
| | | | Add to both zed and zed-vicmd keymaps.
* 41839: force IFS to default for "read"Sebastian Gniazdowski2018-01-191-1/+1
|
* 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.
* 41899: handle multi-word values of $VISUAL et al., and line counting of ↵Barton E. Schaefer2017-10-151-5/+5
| | | | buffer for emacs startup
* Make mbegin, mend, match local in zed.Peter Stephenson2017-08-311-0/+3
| | | | Needed for zstyle -m.
* 41565: vcs_info patch2subject: Support `svn log -r N --diff` output.Daniel Shahaf2017-08-221-2/+9
|
* 41472: introduce cleanup hooks default and restore special themes, and ↵Barton E. Schaefer2017-07-295-37/+115
| | | | update documentation
* 41345: Use consistent prompt variables in prompt themese.Peter Stephenson2017-06-261-3/+3
| | | | | Some more sanity may be needed in this area but this apsect seems uncontroversial.
* 41265: quote the inserted file names as necessaryWieland Hoffmann2017-06-161-2/+2
|
* unposted: fix typo in url-quote-magicEric Cook2017-06-131-1/+1
|
* 41232: Use page up/down keys in zed keymap.Sebastian Gniazdowski2017-06-071-0/+23
| | | | Find with terminfo where available.
* unposted: Use typeset -g in insert-unicode-charPeter Stephenson2017-05-021-2/+2
| | | | Avoid warning from WARN_NESTED_VAR if set.
* 40892: subcommand matching for ip helpAaron Schrab2017-03-241-2/+2
|
* 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
|