{"thread":{"id":"35119","subject":"[PATCH v3 try2] build: add default aliases","startedAt":"2013-10-12T07:04:42Z","lastAt":"2013-10-12T07:04:42Z","messageCount":1,"participants":["Felipe Contreras"],"isPatch":true,"patchVersion":3,"patchTotal":null},"messages":[{"id":"228791","messageId":"1381561482-20208-1-git-send-email-felipe.contreras@gmail.com","threadId":"35119","inReplyTo":null,"subject":"[PATCH v3 try2] build: add default aliases","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2013-10-12T07:04:42Z","receivedAt":"2013-10-12T07:04:42Z","isPatch":true,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"For now simply add a few common aliases.\n\n  co = checkout\n  ci = commit\n  rb = rebase\n  st = status\n\nSigned-off-by: Felipe Contreras <felipe.contreras@gmail.com>\n---\n Documentation/git-checkout.txt | 5 +++++\n Documentation/git-commit.txt   | 5 +++++\n Documentation/git-rebase.txt   | 5 +++++\n Documentation/git-status.txt   | 5 +++++\n config.c                       | 5 +++++\n 5 files changed, 25 insertions(+)\n\ndiff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt\nindex ca118ac..7597813 100644\n--- a/Documentation/git-checkout.txt\n+++ b/Documentation/git-checkout.txt\n@@ -14,6 +14,11 @@ SYNOPSIS\n 'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>...\n 'git checkout' [-p|--patch] [<tree-ish>] [--] [<paths>...]\n \n+ALIAS\n+-----\n+\n+git co\n+\n DESCRIPTION\n -----------\n Updates files in the working tree to match the version in the index\ndiff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt\nindex 1a7616c..8705abc 100644\n--- a/Documentation/git-commit.txt\n+++ b/Documentation/git-commit.txt\n@@ -15,6 +15,11 @@ SYNOPSIS\n \t   [--date=<date>] [--cleanup=<mode>] [--[no-]status]\n \t   [-i | -o] [-S[<keyid>]] [--] [<file>...]\n \n+ALIAS\n+-----\n+\n+git ci\n+\n DESCRIPTION\n -----------\n Stores the current contents of the index in a new commit along\ndiff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt\nindex 6b2e1c8..bb18fea 100644\n--- a/Documentation/git-rebase.txt\n+++ b/Documentation/git-rebase.txt\n@@ -14,6 +14,11 @@ SYNOPSIS\n \t--root [<branch>]\n 'git rebase' --continue | --skip | --abort | --edit-todo\n \n+ALIAS\n+-----\n+\n+git rb\n+\n DESCRIPTION\n -----------\n If <branch> is specified, 'git rebase' will perform an automatic\ndiff --git a/Documentation/git-status.txt b/Documentation/git-status.txt\nindex 9046df9..30ecd25 100644\n--- a/Documentation/git-status.txt\n+++ b/Documentation/git-status.txt\n@@ -11,6 +11,11 @@ SYNOPSIS\n [verse]\n 'git status' [<options>...] [--] [<pathspec>...]\n \n+ALIAS\n+-----\n+\n+git st\n+\n DESCRIPTION\n -----------\n Displays paths that have differences between the index file and the\ndiff --git a/config.c b/config.c\nindex e13a7b6..be724b2 100644\n--- a/config.c\n+++ b/config.c\n@@ -1082,6 +1082,11 @@ int git_config_early(config_fn_t fn, void *data, const char *repo_config)\n \n \thome_config_paths(&user_config, &xdg_config, \"config\");\n \n+\tret += fn(\"alias.ci\", \"commit\", data);\n+\tret += fn(\"alias.co\", \"checkout\", data);\n+\tret += fn(\"alias.rb\", \"rebase\", data);\n+\tret += fn(\"alias.st\", \"status\", data);\n+\n \tif (git_config_system() && !access_or_die(git_etc_gitconfig(), R_OK, 0)) {\n \t\tret += git_config_from_file(fn, git_etc_gitconfig(),\n \t\t\t\t\t    data);\n-- \n1.8.4-fc\n"}]}