1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-10 04:21:37 +02:00
Commit graph

578 commits

Author SHA1 Message Date
Artur Penttinen
8505837f89 19371 plus tweak: run-help helper for ip 2014-11-13 20:25:00 +00:00
Frank Terbeck
a03227de23 33405: vcs_info: Make sure maxexports is set when VCS_INFO_set is called
Reported-by: From: Marco Hinz <mh.codebro@gmail.com>
2014-10-09 18:36:13 +02:00
Marc Finet
0f73b35f4e 33391: vcs_info git: fix applied patch detection on git am
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-10-09 18:11:08 +02:00
Frank Terbeck
4a529201b8 33277: Fix VCS_INFO_reposub's command expansion
Reported-by: Marco Hinz <mh.codebro@gmail.com>
2014-09-29 19:20:11 +02:00
Daniel Hahler
64e2b4426e 33217: vcs_info: use --ignore-submodules=dirty with diff/diff-index
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-22 23:23:03 +02:00
Marc Finet
9c29a4f1f6 33184: vcs_info git: consider patches for rebase
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 "?".
2014-09-16 23:20:55 +02:00
Marc Finet
2c2d4f9627 33188: vcs_info git: set rrn before using it
This would fix handling get-revision, check-for-changes or
check-for-staged-changes when set per repository.
2014-09-16 23:20:52 +02:00
Marc Finet
d5f574e20a 33145: vcs_info git: fix applied-string name
Documentation and hg backend use applied-string. patch-string does not
appear anywhere.
2014-09-14 12:02:37 +02:00
Marc Finet
06e03e7234 33148: vcs_info quilt: refactor standalone detection
Since VCS_INFO_bydir_detect always uses the
vcs_comm[detect_need_file], it should be cleared when querying
it without file.
2014-09-14 12:02:36 +02:00
Marc Finet
5e40996891 33147: vcs_info git: detect revert or cherry-pick with multiple commits
When revert or cherry-pick involve many commits the .git/sequencer
directory holds context for the action and no CHERRY_PICK_HEAD exist.
2014-09-14 12:02:36 +02:00
Peter Stephenson
cc6e9db29d 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
Peter Stephenson
5bcf00979f 33002: tcp_expect -P pm tags matches with a string 2014-08-14 09:56:43 +01:00
Peter Stephenson
f8ae47f29b unposted: updates for 5.0.5-dev-1 and subsequent 5.0.6 release 2014-08-10 17:49:55 +01:00
Peter Stephenson
15db636380 %P at start of TCP function system prompt causes %-style prompt subst 2014-07-30 12:26:03 +01:00
Peter Stephenson
6076c474f2 unposted: replace-argument can take negative prefix to count from end 2014-07-24 10:49:50 +01:00
Peter Stephenson
4e54648add 32866: new replace-argument ZLE function.
Also a couple of read-from-minibuffer fixes: don't pass numeric
argument to recursive edit, and hide the minibuffer edit from
the undo history.
2014-07-17 09:45:46 +01:00
Daniel Shahaf
b85b09b78b 32662: vcs_info git: Fix stagedstr for empty repos
In empty repositories, HEAD is an unresolvable symbolic ref.  Start computing
stagedstr/unstagedstr in that case; for the former, use a different method
than the non-empty-repository case.
2014-06-02 15:17:04 +02:00
Daniel Shahaf
55d5feed30 32621: vcs_info svn: 'Fix set-branch-format' when in subdirs
The previous code would fail to detect the wcroot with Subversion 1.7+
when cwd is at least two levels below the root (i.e., ../../.svn exists
and ../.svn doesn't), and would then pass to the hook the revision and
basename of cwd rather than of the wcroot.
2014-05-29 16:50:07 +02:00
Daniel Shahaf
bb271217fe 32619: vcs_info svn: Use the revision of cwd
Previously, the value of the wc root would be used.  In Subversion,
it makes more sense to use the revision of cwd, since all commands
(e.g., 'svn ci', 'svnversion') operate only on cwd and below, not on
wcroot and below.
2014-05-29 16:50:07 +02:00
Daniel Shahaf
6a201af341 32597: vcs_info git: Describe detached heads symbolically.
This makes %b expand to a refname rather than a sha1 when HEAD is detached but
happens to match some ref (branch, tag, etc).  The resulting output will
typically contain a slash (e.g., "tags/v1.0.2", "heads/mybranch"), which helps
distinguish it from the output in the "HEAD is a symbolic ref" case.
2014-05-06 14:22:10 +02:00
Peter Stephenson
08d4a6136e addition to 32527: also update .distfiles 2014-04-07 09:59:35 +01:00
Peter Stephenson
47c440aa2a 32527: zcalc-auto-insert key binding for use in zcalc 2014-04-07 09:58:30 +01:00
Daniel Shahaf
eb4c70d0b7 32528: vcs_info: Add check-for-staged-changes 2014-04-05 10:56:52 +02:00
Peter Stephenson
965d7305e5 32453: fix zcalc default base handling 2014-03-01 21:27:47 +00:00
Peter Stephenson
52f72086c9 users 18531 plus doc etc.: new expand-absolute-path widget 2014-02-28 18:44:49 +00:00
Peter Stephenson
22b8fd6da9 32299: add use of underscores on arithmetic output for spacing 2014-01-23 10:32:59 +00:00
Frank Terbeck
82a3591f57 32264: vcs_info, hg: Support detecting repos using ShareExtension 2014-01-17 08:58:52 +01:00
Daniel Shahaf
c1a15fb152 32089: tweak to detect Subversion repository 2013-12-05 20:06:34 +00:00
Barton E. Schaefer
9972fdeead 32066: fix %r and %S in vcs_info formats when a repository subdirectory is accessed via a symlink
31985 Clemens Hammacher and 32064 Hong Xu
2013-11-29 12:32:36 -08:00
Peter Stephenson
9503b161ab 32031 plus missed _run_help: get helpfiles install path corect in functions 2013-11-23 17:44:12 +00:00
Peter Stephenson
12251d65ff 31940: zcalc -e uses arguments as input 2013-11-08 11:34:37 +00:00
Barton E. Schaefer
4748eff7d2 Some syntax adjustments in _expand_word_and_keep. Add a working URL. 2013-10-27 14:12:54 -07:00
Peter Stephenson
061e809502 31711: add execute-never style for MIME function system.
Allows alien file systems to be marked as not having executable fiels
2013-09-08 21:12:13 +01:00
Peter Stephenson
1c9931cc7d users/17955: new "disown" style for MIME handlers.
Makes handlers put into the background run without job control.
2013-08-29 10:48:49 +01:00
Phil Pennock
180c4c049c 31634: run-help compat with alias to noglob/nocorrect
Given `alias fetch='noglob fetch'`, without this change `run-help fetch`
recurses to invoke itself on the noglob command, bringing up the help
for noglob.  Similarly for nocorrect.  Thus the user would have to quit
out of the pager, then avoid quitting out of the loop, so that they can
go into the second iteration and see the help for the second instance
found by `whence -a`, which happens to be the target of the alias.
With common pagers, that's thus 'q', 'not-q'.  Somewhat frustrating.

Without this change, `alias foo='noglob bar'` where `foo` is not
otherwise a command would _never_ show the help for `bar`, since it only
showed the help for `noglob` and there was no second line of whence
output to trigger the second pass.

With this change, aliases to `noglob|nocorrect` of a command somewhat
ignore the presence of that precommand modifier; if a command is aliased
to `noglob $itself`, then the result is that the first line of whence
output is shown, no pager is used, the user can immediately see a prompt
to continue and press something other-than-q to see the help for the
command.

If given `alias foo='noglob bar'` then `run-help foo` will immediately
show the help for bar.

This behaviour was chosen to be consistent with the existing alias
support, but just working better with the precommand modifier.
2013-08-07 04:11:56 -04:00
Peter Stephenson
669c070efe 31503: zmv improvements for user-specified programs.
-p splits words of commands passed to it.
-P is like -p for when the program doesn't understand the -- convention
2013-07-03 12:46:02 +01:00
Frank Terbeck
88599a0508 31485: vcs_info, git: Avoid error messages for `guilt' users
Guilt uses the same internal directory for keeping state as stgit, but
it doesn't use the same files (not surprisingly). This caused error
messages due to missing files.

This fixes that by making the "stgit-active?" test stricter.

Reported-by: Axel Beckert <abe@debian.org>
2013-06-18 09:16:59 +02:00
Peter Stephenson
711c103e77 31422: better heuristic for timestamps in age function 2013-05-29 19:20:12 +01:00
Peter Stephenson
692a15363f 31418: improve documentation for "age" function 2013-05-21 17:11:04 +01:00
Stephane Chazelas
2989e4b66e 31417: age function needs protection against file names starting "-" 2013-05-21 14:45:52 +01:00
Frank Terbeck
e619a7353a 31222: Stop {up,down}-line-or-beginning-search from triggering warn_create_global
This is a followup to 30995 taking Peter's suggestions from 30997 into
account.
2013-04-05 21:05:54 +02:00
Peter Stephenson
ab8fe84a8c 31155: minor extra zcalc features and documentation 2013-03-17 20:52:55 +00:00
Peter Stephenson
136cc1e1b7 31154: make zcalc understand continuation lines with a backslash 2013-03-15 20:15:10 +00:00
Mikael Magnusson
44907223ff 31136: vcs_info: just set parameters instead of passing over a pipe 2013-03-10 13:18:32 +00:00
Mikael Magnusson
0c8625299a 30639: Add support for showing the current action is cherry-pick to vcs_info git backend 2013-03-10 12:47:39 +00:00
Peter Stephenson
26694406f2 users/17666: zcalc -f sets FORCE_FLOAT 2013-03-05 20:06:59 +00:00
Peter Stephenson
6265394d6b users/17608: use function to modify currrent command line argument 2013-01-24 20:28:20 +00:00
Frank Terbeck
2e6363ed50 Baptiste Daroussin: 30703: VCS_INFO_detect_fossil: Fix fossil detection on unix 2012-09-28 22:11:32 +00:00
Frank Terbeck
feb6169bcd Seth House: 30702: contrib.yo, VCS_INFO_get_data_hg: Removed --debug flag from the hg vcs_info backend 2012-09-28 22:07:29 +00:00
Peter Stephenson
07fd604718 Stepan Koltsov: 30634: use (q-) quoting
for zmv output for clarity.
2012-08-20 14:03:04 +00:00