Commit Graph

400 Commits

Author SHA1 Message Date
Aljaž "g5pw" Srebrnič
7194283dfa Declare local variables
Since we are using the _arguments helper, we need to define some local
variables in order to avoid altering the global environment.
2013-08-20 22:28:22 +02:00
Aljaž "g5pw" Srebrnič
f81c243701 Merge branch 'master' of git://github.com/ndbroadbent/scm_breeze 2013-08-20 21:54:04 +02:00
Alex Galonsky
c37073cbc6 Using git rev-parse --show-toplevel to find repo root 2013-08-18 05:00:42 +00:00
Nathan Broadbent
9d5efbb7c5 Added gau alias for git add -u 2013-08-16 00:34:15 -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
a6a23b0a3d Re-add git reset to the expanded numeric commands 2013-08-15 23:47:10 -07:00
Nathan Broadbent
e9f3fd7a7c Fix git_commit_all for OSX 2013-07-22 20:33:23 -07:00
Nathan Broadbent
2541ef9817 Merge pull request #95 from cliffrowley/master
Add git difftool (default alias "gdt")
2013-07-15 20:01:57 -07:00
Nathan Broadbent
c575f171c2 Fixed case-insensitive matching... my last commit was pretty dumb 2013-07-09 20:10:57 +12:00
Nathan Broadbent
697a636e10 repo_index should be case insensitive 2013-07-09 19:49:35 +12:00
Nathan Broadbent
0ce8618d90 Added 'git_reset_last_commit' (grsl) alias, useful for undoing a temporary commit 2013-07-04 13:10:12 +12:00
Cliff Rowley
65e62a883b Add git difftool (default alias "gdt") 2013-07-02 16:00:54 +01:00
Nathan Broadbent
b3661b108a Merge pull request #89 from siasia/master
Fix gb -D expansion
2013-07-01 14:39:49 -07:00
Abhishek Das
07518479a8 Adds git stash aliases 2013-07-01 18:19:03 +05:30
Artyom Olshevskiy
3ee5517d82 Fix gb -D expansion 2013-05-31 18:46:32 +03:00
Marcin Bachry
123c17fa3b Make bash completions work with Ubuntu 13.04 2013-04-18 19:44:12 +02:00
Aljaž "g5pw" Srebrnič
7381978fe0 Merge branch 'master' of git://github.com/ndbroadbent/scm_breeze 2013-04-15 17:58:47 +02:00
Giuseppe Rota
d9351f82c4 Conditional git branch aliases definition 2013-03-12 22:35:42 +01:00
Nathan Broadbent
adedf86971 No expand args for git reset 2013-02-03 13:35:59 +13:00
Nathan Broadbent
dd10be79e2 Re-wrap functions as functions. Fixes issue with RVM reload (cd wrapper will be overwritten without error) 2013-01-30 22:29:05 +13:00
Nathan Broadbent
5b7a2c4307 Ensure SCM Breeze is loaded after RVM when wrapping the cd command 2013-01-30 12:05:40 +13: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
Nathan Broadbent
63f9fe00d7 Added gbD alias for 'git branch -D', and made gbd do a 'safe' delete with -d 2013-01-30 10:25:13 +13:00
Nathan Broadbent
18e94797e9 Try removing quotes for array concatenation 2013-01-12 12:16:55 +13:00
Nathan Broadbent
df996f4442 Merge pull request #74 from ZhangBanger/master
Add 'gdw' for git diff --word-diff
2013-01-10 12:59:48 -08: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
Andy Zhang
8ba76f1cbf Add "gdw" for git diff --word-diff
* Sometimes helpful to see changes inline
* Potential to tweak further with better regex (maybe detect similar char types so diff can be more granular)
2012-12-25 01:36:34 -08:00
Nathan Broadbent
6d297aecba Wrap $@ in double quotes to preserve blank args 2012-12-21 10:42:14 +13:00
Nathan Broadbent
aa7dd471b5 Also expand args for git rebase x, where x is a shortcut to a branch 2012-12-15 08:49:28 +13:00
Nathan Broadbent
42a5832916 Added 'git tag' alias (gt) 2012-12-10 23:17:54 +13:00
Nathan Broadbent
242d891fcd Wrap first __git_ignore arg in quotes in case blank 2012-12-10 23:12:13 +13:00
Nathan Broadbent
9822603e9c Use sed -E for GNU/BSD compatibile regexs 2012-12-05 22:18:00 +13:00
Nathan Broadbent
cd4fb8b079 Added git push -f alias 2012-12-04 13:40:47 +13:00
Nathan Broadbent
2ef3776fe1 git_branch_delete_all should take '-f' arg to use -D arg 2012-11-28 19:41:09 +13:00
Nathan Broadbent
963de3b7aa Handle "aliased to" for OS X Terminal.app ... 2012-11-17 11:45:26 +13:00
Nathan Broadbent
3dcf934a75 Use builtin type to protect against aliases 2012-11-17 11:42:33 +13:00
Nathan Broadbent
0a797fb620 Provide X-compatible find_binary function that finds a binary for a given command. Works with zsh/bash 2012-11-17 11:41:08 +13:00
Aljaž "g5pw" Srebrnič
8db7be7e6c Merge branch 'master' of git://github.com/ndbroadbent/scm_breeze 2012-11-14 11:09:54 +01:00
Yan Pritzker
480045e5a4 Pick the first git in case there are multiple 2012-11-13 10:27:57 -06:00
Nathan Broadbent
992b1866b2 Use type -p / -P to determine git binary 2012-11-13 12:45:01 +13:00
Nathan Broadbent
7375597407 Added shortcut to commit README / Documentation with [ci skip] 2012-11-10 13:47:25 +13:00
Aljaž "g5pw" Srebrnič
4dec6b288f Eliminated zsh references in completion
Since there is another, totally different completion function, this patch eliminates
all references to zsh in _git_index_tab_completion.
2012-10-30 11:19:24 +01:00
Nathan Broadbent
436b0da138 Further ll fixes for escaped spaces and quotes! 2012-10-23 23:34:17 +13:00
Aljaž "g5pw" Srebrnič
a9aa363fdb Added initial zsh completion support to git_index
zsh now completes all arguments and all directories inside $GIT_REPO_DIR. This is till buggy because not all directories in $GIT_REPO_DIR are actual git projects. Next update will include completing the list in the .git_index file.
2012-10-23 09:13:20 +02:00
Nathan Broadbent
c20b91442a Use $GIT_BINARY when original git binary is needed 2012-10-23 13:52:04 +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
5836617dbf Fully fixed up ll escaping, added lots of tests 2012-10-23 12:25:28 +13:00
Nathan Broadbent
7c7aedce03 Fixed ruby script to use STDIN, and pipe ll output to script 2012-10-23 10:35:16 +13:00
Nathan Broadbent
647e18e3ef Merge branch 'master' of git://github.com/g5pw/scm_breeze into g5pw-master
Conflicts:
	lib/git/shell_shortcuts.sh
2012-10-23 10:22:49 +13:00