Commit Graph

413 Commits

Author SHA1 Message Date
Nathan Broadbent
2b6e3a9af0 Revert cf8e3875, added aliases for git reset -- and --hard 2012-01-18 15:34:05 +08:00
Nathan Broadbent
38832c70d7 Symlink to ~/.scm_breeze if not installing to that path 2012-01-17 12:27:42 +08:00
Nathan Broadbent
3ad6daadc1 Follow naming convention (travis_, not travis_ci_) 2012-01-17 10:26:13 +08:00
Nathan Broadbent
00d00e35eb Use a better file for Travis CI status 2012-01-17 10:23:51 +08:00
Nathan Broadbent
a0f091b0f2 Use ~/code, and 'c' alias. 2012-01-15 12:45:45 +08:00
Nathan Broadbent
aae9ed4632 Allow use of git_update_travis_status() function outside of git_index --batch-cmd 2012-01-13 17:41:51 +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
0c510f73ff Added alias for git commit -C HEAD (useful at final step of merge conflict) 2012-01-06 16:25:47 +08:00
Nathan Broadbent
a78577d613 Don't exit from a function, return 2012-01-06 16:06:36 +08:00
Nathan Broadbent
8d1566c688 Added 'git_swap_remotes' script to swap names between two remotes 2012-01-06 16:05:40 +08:00
Nathan Broadbent
e5a1cef5e8 Added 'git clean' and 'git clean -fd' aliases for clearing untracked files. (gce, gcef) 2011-12-23 12:59:50 +08:00
Nathan Broadbent
398060a67a Parse long git status for submodule summaries, if .gitmodules exists and any changed 'files' are submodules. 2011-12-23 12:46:29 +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
9b0852de2d Handle 'typechange' modification, with special case for symlinks 2011-12-23 11:46:54 +08:00
Nathan Broadbent
504bc91fb8 Added git fetch --all alias 2011-12-23 10:58:27 +08:00
Nathan Broadbent
bb7ae286a0 updated git_submodule_rm task 2011-12-20 15:29:03 +08:00
Nathan Broadbent
229b832bc0 Added function to remove a git submodule 2011-12-20 15:26:13 +08:00
Nathan Broadbent
cc53d9fecf Fixed git_branch to handle (no branch) 2011-12-20 11:37:14 +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 B
4843ec80b5 Use secure url for Travis image 2011-12-18 00:33:08 +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
6eaeb873d6 It is often useful to exclude the basename of a file from status shortcuts. i.e. git_exclude_basename $e2 2011-12-17 11:05:18 +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
cb50656cf0 Finally sorted out tab completions for git aliases, works with all versions of git (1.7.5.4 up to 1.7.8) (#11) 2011-12-15 00:32:30 +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
Nathan Broadbent
2cd411aa4f Fixed git alias tab completion (#11), using a slightly altered workaround contributed by @bronson - Thanks! 2011-12-14 13:16:47 +08:00
Nathan Broadbent
6a757687c5 Fixed git_set_default_remote to use current branch for default 2011-12-13 12:40:36 +08:00
Nathan Broadbent
938c982e99 Fixed bisect tool 2011-12-10 16:35:54 +08:00
Nathan Broadbent
a09f31f9d3 Added git bisect wrapper to find commit that removed text 2011-12-10 16:33:50 +08:00
Nathan Broadbent
46637dc15c Allow change to a top-level directory within $GIT_REPO_DIR by prefixing the arg with '/'. Comes with tab completion. For example, if you have a directory ~/src/rails, you can move here by typing 's /ra[TAB]' 2011-12-09 22:59:32 +08:00
Nathan Broadbent
debcffa417 Added functions to quickly add git ignore rules to either .gitignore or .git/info/exclude 2011-12-03 01:47:20 +08:00
Nathan Broadbent
9a8d10103f Added git function to set default remote for a branch. By default it sets: branch.master.remote = origin, branch.master.merge = refs/heads/master 2011-11-26 12:06:34 +08:00
Nathan Broadbent
f2482cf819 Alias 'git' to the 'hub' wrapper, if installed. Wraps the git command with awesome github focussed shortcuts. 2011-11-17 10:05:09 +08:00
Nathan B
f2dc7c01dc Merge pull request #14 from jlukas/master
Fix issues working with files/folders with spaces and special characters
2011-11-09 20:25:38 -08:00
Jacob Lukas
ea26846077 Add a couple comments 2011-11-09 20:14:42 -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
Nathan Broadbent
48eddd160f Merge branch 'master' of github.com:ndbroadbent/scm_breeze 2011-11-10 10:01:57 +08:00
Nathan Broadbent
00da66d57e Added LICENSE [ci skip] 2011-11-10 09:58:24 +08:00
Nathan B
f61ae1663c Merge pull request #13 from jlukas/master
Fix switching to repositories with spaces or other special characters in their path
2011-11-09 17:55:42 -08:00
Jacob Lukas
a1a7e3066e Fix switching to repositories with spaces or other special characters in their path 2011-11-09 11:37:06 -08:00
Nathan B
e17413f579 Merge pull request #10 from ghthor/master
'git add -p' aliased to 'gap'
2011-11-01 00:28:07 -07:00
Will Walthall
456cedb082 Added an alias for 'git add -p' 2011-10-28 08:00:56 -04:00
Nathan Broadbent
e541f43d16 Merge branch 'master' of github.com:ndbroadbent/scm_breeze 2011-10-26 13:20:36 +08:00
Nathan Broadbent
7c3911a605 Added formatted alias index function. Call 'git_aliases' to remind yourself of git shortcuts. 2011-10-26 13:20:18 +08:00