Commit Graph

61 Commits

Author SHA1 Message Date
Tom "Ravi" Hale
48302bcd8c Be compatible with shells of Ubuntu 14.04 2018-09-18 17:03:01 +07:00
Tom "Ravi" Hale
d5c60b2cc5 git_status_shortcuts: don't clobber $IFS 2018-09-01 20:19:57 +07:00
Tom "Ravi" Hale
5f286eaaaa Quote arrays to avoid splitting by $IFS 2018-09-01 20:14:36 +07:00
Willa Drengwitz
d0c8329137 Fix sorting order 2018-08-31 08:58:23 -04:00
Nathan Broadbent
6745822953 Fix IFS issues - have to always unset after use 2017-02-19 20:05:59 +07:00
Andy Zhang
76fc67b9fd Bump git index depth to 5 for golang src structure 2016-11-14 11:30:06 -08:00
Tyler Levine
747b60cf37 Use >| operator in _rebuild_git_index when overwriting .git_index file
If the shell has the noclobber option set, s --rebuild will fail to
update the .git_index file. Using the >| operator instead of the >
operator forces the .git_index file to be clobbered, which is the
desired behavior.
2016-03-14 12:56:15 -07:00
Aljaž "g5pw" Srebrnič
0de1579dc4 No need to have semicolons 2013-08-20 23:03:34 +02:00
Aljaž "g5pw" Srebrnič
18fe0accf1 Complete commands when using batch-cmd 2013-08-20 23:03:01 +02:00
Aljaž "g5pw" Srebrnič
9f548c4175 Basic zsh completion for git_index
The script now completes all projects in the index and all files in GIT_PROJECTS
directory.
2013-08-20 22:35:16 +02:00
Aljaž "g5pw" Srebrnič
025351c486 Change completion title
It makes more sense to name the category 'Git projects' instead of 'Project
name'.
2013-08-20 22:30:16 +02:00
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
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
Aljaž "g5pw" Srebrnič
7381978fe0 Merge branch 'master' of git://github.com/ndbroadbent/scm_breeze 2013-04-15 17:58:47 +02:00
Nathan Broadbent
18e94797e9 Try removing quotes for array concatenation 2013-01-12 12:16:55 +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
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
58db58efd3 Use redefined cd when switching between projects, to run rbenv, rvmrc, etc. 2012-10-21 11:29:50 +13:00
Nathan Broadbent
0dd8a05d15 Revert "Video cheat"
This reverts commit f7f1a3dcfb.
2012-10-17 07:44:14 +13:00
Nathan Broadbent
f7f1a3dcfb Cheat for the video :P 2012-10-16 10:58:29 +13:00
Nathan Broadbent
8f19f35b06 Fixed completion appending '//' when in a project's directory 2012-10-16 10:58:29 +13:00
Nathan Broadbent
b92c2da2fc Added --update-all-with-notifications command for easier cron invocation 2012-10-11 23:51:37 +13:00
Nathan Broadbent
d3c3640565 Whoops, double sed'd 2012-10-10 13:47:38 +13:00
Nathan Broadbent
4091e701c4 Use git binary for commands 2012-10-10 12:39:28 +13:00
Nathan Broadbent
c4f49c96d7 Use escaped git function, so it doesn't go through any aliases like hub 2012-08-12 21:32:05 +12:00
Nukul Bhasin
240399bd92 work around for ndbroadbent/scm_breeze#27 2012-08-12 21:19:49 +12:00
coodix
97721437c9 Change _find_git_repos function fixing situation when no one repo was found by "c --rebuild" when $GIT_REPO_DIR is symbolic link 2012-05-20 22:41:08 +04:00
Nathan Broadbent
b1aba1480b Replace 'command grep' with '\grep' to break out of aliases 2012-05-08 16:02:20 +12:00
Giuseppe Rota
ff1a59ddb7 forgot another one command grep 2012-05-02 21:45:03 +02:00
Giuseppe Rota
cc48bcb82f Substitute all grep instances with command grep 2012-04-26 17:27:50 +02:00
Nathan Broadbent
fa9a255ac4 Fixed branch iteration for array in _git_index_update_all_branches function 2012-03-20 14:53:29 +08:00
Nathan Broadbent
323405477a If $NOTIFY is set, use notify-send to send git repo update notifications 2012-03-18 23:52:07 +08:00
Nathan Broadbent
aca96a5e8c Fix defaut IFS for Ubuntu 11.x 2012-03-08 17:35:03 +08:00
Nathan Broadbent
f71372a8e9 Expanded travis ci build status update, so that it can perform frequent updates for the current branch, and periodic updates for all branches. Updating all branches was taking over 20 minutes. 2012-02-03 11:35:08 +08:00
Nathan Broadbent
78cc2d46ea Make sure bin/git is used to parse branch (turn off hub wrapper if present) 2012-02-01 12:12:10 +08:00
Nathan Broadbent
ada316bd5b Use builtin cd for batch commands 2012-01-31 00:11:10 +08:00
Nathan Broadbent
80d1bf9208 Fixed issue with aliased 'cd' command 2012-01-27 16:04:25 +08:00
Nathan Broadbent
22086627d0 For git batch commands, make $base_path variable local so that it doesn't persist 2012-01-26 13:38:06 +08:00
Nathan Broadbent
04ee82b0c8 Added Travis CI status caching task, for status in shell prompts 2012-01-13 12:07:07 +08:00
Nathan Broadbent
9e701a18e5 Fixed case where more than one project matched the completed word 2011-12-20 11:29:44 +08:00
Nathan Broadbent
80bd4decac Updated example cron to refresh repos every 10 min [ci skip] 2011-12-20 11:15:37 +08:00
Nathan Broadbent
9715265c79 Added index --rebuild task before --update-all in example cron script [ci skip] 2011-12-20 11:13:22 +08:00
Nathan Broadbent
ebb646b233 Fixed example cron script to use /bin/bash [ci skip] 2011-12-19 10:32:16 +08:00
Nathan Broadbent
c21039646c Added example cron config to keep all local repos up-to-date automatically [ci skip] 2011-12-18 02:03:13 +08:00
Nathan Broadbent
710fb7181e Implemented a robust git_index_update_all_branches function, to automatically perform a safe fast-forward of all local branches, if their remtoes and merge refs are configured. Can be run from a cron script to keep all repos up to date 2011-12-18 00:22:01 +08:00
Nathan Broadbent
1ad7408d05 Took some inspiration from git tab completion, and separated the completion of '--' commands from project directories 2011-12-17 10:53:58 +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