Tom "Ravi" Hale
5f286eaaaa
Quote arrays to avoid splitting by $IFS
2018-09-01 20:14:36 +07:00
Nathan Broadbent
6745822953
Fix IFS issues - have to always unset after use
2017-02-19 20:05:59 +07:00
Wilhelmina Drengwitz
8c21b3d87f
Merge pull request #152 from mroth/fix-clear-vars
...
BUGFIX: make `git_clear_vars()` actually clear variables
2017-01-30 15:21:44 -05:00
Patrick Brinich-Langlois
6e28eb645a
exec_scmb_expand_args: Escape ampersands.
2015-08-23 21:51:27 -07:00
James Ravn
bdf6096808
Fix quoting of semicolon and pipe
2015-05-10 00:39:05 +01:00
Matthew Rothenberg
ed2240e214
BUGFIX: actually clear variables
...
The current `git_clear_vars()` method appears to have iterated over all
the existing set variable correctly, but never actually bothered to
clear them.
2014-10-15 02:21:35 -04:00
Chas Ballew
413351a203
Fix upcoming Git 2.0 breaking change to git add -A.
2014-01-26 21:02:00 -05:00
Nathan Broadbent
878d81a4bd
Fix git checkout,diff,reset,rm in deleted directories, if pwd is in git dir
2013-10-22 23:24:54 -07:00
Nathan Broadbent
b765b00776
Wait... they should be a maximum of 4 digits.
2013-08-15 23:55:12 -07:00
Nathan Broadbent
726b864785
$e{*} variables should be a maximum of 3 digits
2013-08-15 23:53:40 -07:00
Nathan Broadbent
e9f3fd7a7c
Fix git_commit_all for OSX
2013-07-22 20:33:23 -07:00
Nathan Broadbent
d1a9df3844
Added keyboard shortcut to append [ ci skip ] to commit message when committing all files
2013-01-30 11:05:59 +13:00
Martin Grund
fcf5dd3f6f
Fix for numbered directories or files
...
This commit fixes some odd behavior for numbered files and
directories. Even if the environment variables is undefined
cd'ing into a numbered directory is not possible. This pathc
fixes this by checking if the argument is a valid
file or directory and is numnbered and if this is the case will
only output the argument values instead of a substitution with $e..
In case there exist both, numbered valid argument and the
directory or folder, the file will always win to avoid clashes with
standard wrapped functions like cd, rm, mv...
2013-01-08 15:38:04 +01:00
Nathan Broadbent
436b0da138
Further ll fixes for escaped spaces and quotes!
2012-10-23 23:34:17 +13:00
Nathan Broadbent
d6730b40c9
Use \033 instead of \e for color codes, which seems to be more widely supported.
2012-10-23 13:44:02 +13:00
Nathan Broadbent
384f2a0668
Created fail_if_not_git_repo function and prepended it to all git functions
2012-09-19 21:34:03 +12:00
Nathan Broadbent
197dcfc74f
Fail git status if .git not in cwd or parent directory
2012-09-19 21:30:07 +12:00
anonfunc
e6f4cd8694
Use vared in zsh instead of read.
...
This change seems to do what you want. It passes ! and \ untouched, it gets history from the shell and it uses the zsh line editor for arrow keys and home/end.
2012-08-27 16:49:39 -07:00
Nathan Broadbent
accbcc5957
git_expand_args => scmb_expand_args
2012-08-15 21:10:46 +12:00
Nathan Broadbent
5e7f49ec7d
Wrap everything in a git function so that zsh can expand any aliases for tab completion
2012-08-13 04:11:09 +12:00
Nathan Broadbent
e7d7b8b2c1
Added even more escaped characters for command line evaluation
2012-08-13 02:52:18 +12:00
Nathan Broadbent
cf37be73d4
add => Added
2012-08-13 01:58:44 +12:00
Nathan Broadbent
79a1132730
Merge pull request #43 from ghthor/master
...
Simplified git add -p alias
2012-08-12 06:34:45 -07:00
Nathan Broadbent
3a507fbd5a
#34 - Increased max changes before falling back to standard git status, from 99 to 150. Also added a explanation message that is shown after the regular git status.
2012-08-13 01:21:23 +12:00
Will Walthall
850be06559
Convert git_add_patch into a simple command
2012-08-12 09:18:02 -04:00
Nathan Broadbent
989b2233b7
_git_expand_args_escaped not needed
2012-08-13 01:00:18 +12:00
Nathan Broadbent
d128fb58d7
Fixed merge conflict resolution functions to handle multiple expanded arguments
2012-08-13 00:58:51 +12:00
Nathan Broadbent
aaf4f5fac5
Use tabs as delimiter so that files with spaces are properly handled. Escape spaces only in exec_git_expand_args, use tabs to split everything else.
2012-08-13 00:22:16 +12:00
Minsu Choi
a8319e187d
avoid "bash:unbound" error when "nounset" option enabled (set -o nounset)
2012-05-09 09:15:01 +09:00
Nathan Broadbent
4fb9123f19
Merge pull request #24 from tylerholien/master
...
Changed usage text to reflect '-' ranges instead of '..' ranges
2012-05-07 21:06:10 -07:00
Nathan Broadbent
b1aba1480b
Replace 'command grep' with '\grep' to break out of aliases
2012-05-08 16:02:20 +12:00
Giuseppe
f9f6da479e
Forgot other command grep
2012-05-02 23:03:26 +02:00
Giuseppe Rota
843a662149
avoid possible aliasing of grep
2012-04-26 00:11:42 +03:00
Tyler Holien
596b370b78
Changed usage text to reflect '-' ranges instead of '..' ranges
2012-04-25 15:01:52 -05:00
Nathan Broadbent
aca96a5e8c
Fix defaut IFS for Ubuntu 11.x
2012-03-08 17:35:03 +08:00
Nathan Broadbent
c5fc3f283f
Wrap token in quotes for zsh
2012-02-29 00:20:57 +08:00
Nathan Broadbent
885d528c35
Fixed local variables for ZSH
2012-02-28 22:39:58 +08:00
Jonathan del Strother
077f22da0b
Don't export 'i' and 'cmd_output' as global vars
2012-02-28 12:42:38 +00:00
Nathan Broadbent
7fd415bbf4
Fixed bug in refactor
2012-01-31 01:15:22 +08:00
Nathan Broadbent
cf31c9a15e
'eval' serves no purpose here either
2012-01-31 01:14:56 +08:00
Nathan Broadbent
7049e7fb64
Fixed git_add_patch_shortcuts
2012-01-31 01:13:00 +08:00
Nathan Broadbent
e82e69f1d9
Replaced 1..3 range syntax with 1-3 (Inspired by holygeek's git-number project - https://github.com/holygeek/git-number )
2012-01-26 10:04:48 +08:00
Nathan Broadbent
0784e99eef
When $arg is a normal string, treat it as shell-quoted. But still treat expanded args as plain strings, otherwise it breaks for filenames with spaces
2011-12-23 11:51:08 +08:00
Nathan Broadbent
d5080aa3d3
Fix printf output to use %s, not %q
2011-12-23 11:47:08 +08:00
Nathan Broadbent
993c9ee9fc
Replaced all occurences of 'local IFS=' with 'IFS= ... unset IFS'. Fixes #12
2011-12-14 13:27:39 +08:00
Jacob Lukas
bfe91e04f0
Fix whitespace
2011-11-09 20:11:24 -08:00
Jacob Lukas
5e507af747
Fix add/remove with spaces/special characters
2011-11-09 20:02:29 -08:00
Will Walthall
456cedb082
Added an alias for 'git add -p'
2011-10-28 08:00:56 -04:00
Nathan Broadbent
421560e9a0
Added debugging output to git_status_shortcuts (enable with scmbDebug=true)
2011-10-21 11:03:18 +08:00
Andrew Lorente
cb8a3a6121
Remove dependency on seq
...
seq is unfortunately not available on OSX. Brackets appear to be fully
shell- and platform-independent.
2011-10-20 13:47:19 -07:00