forked from divad12/khan-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove optional settings from KA gitconfig
Summary: first target for cleaning up dotfiles, opening review now for discussion. this one seems pretty straightforward to me, but some open questions. First commits: wip: more consistent name for KA global gitignore wip: move all optional preferences into separate file global preferences that are not *essential* to our workflow, and convenience abbreviations and other cleverness (which could conflict with user existing settings) instructions to restore all old prefs are at the top of .gitconfig.khan-xtra Test Plan: test in VM, verify rollout with new employees on next Monday cycle Reviewers: marcos, ethan, csilvers Reviewed By: csilvers Subscribers: alpert Projects: #devenvfixup Differential Revision: https://phabricator.khanacademy.org/D18665
- Loading branch information
Matthew Rothenberg
committed
Jun 19, 2015
1 parent
9ec8f80
commit 9f79cfc
Showing
3 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# These configuration directives used to be part of the global .gitconfig.khan, | ||
# but actually represent global *preferences* rather than anything specific to | ||
# the KA workflow. | ||
# | ||
# They are installed to your filesystem but are not "included" by default. | ||
# If you wish to use them, you can either: | ||
# | ||
# 1. Copy and paste the ones you want into your global ~/.gitconfig, and modify | ||
# as you see fit! | ||
# 2. If you want all of these everywhere (not just in KA directories), you can | ||
# include them in your global gitconfig via : | ||
# `git config --global include.path ~/.gitconfig.khan-xtra` | ||
# 3. If you want these active but only in KA repositories, add a similar | ||
# include.path directive to the ~/.gitconfig.khan file. You can modify the | ||
# file directory or do it from the command line with: | ||
# `git config -f ~/.gitconfig.khan include.path ~/.gitconfig.khan-xtra` | ||
[alias] | ||
# Abbreviations. | ||
st = status | ||
ci = commit | ||
# Show branches (and tags) ordered by last-modified. | ||
br = for-each-ref --sort=-committerdate --format='%(HEAD) %(refname:short)' refs/heads/ | ||
tg = for-each-ref --sort=taggerdate --format='%(refname:short)' refs/tags/ | ||
df = diff | ||
dfs = diff --staged | ||
lp = log -p | ||
bw = blame -w ; ignore whitespace changes | ||
|
||
[merge] | ||
# Always show a diffstat at the end of a merge | ||
stat = true | ||
|
||
[diff] | ||
# Use mnemonic prefixes (index, work tree, commit, object) instead of the standard a and b notation | ||
mnemonicprefix = true | ||
|
||
# Detect renames as well as copies | ||
renames = copies |
File renamed without changes.