adarsh / dotfiles

my dotfiles - configurations for developing in OS X
8 stars 4 forks source link

alias git ss > `diff --shortstat` #49

Closed adarsh closed 8 years ago

adarsh commented 8 years ago

Reason for Change

From @thorncp's PR:

When working on a feature branch, I often stop to check in on my current diff size, to judge whether I should make an attempt to submit a pull request with the work done so far, or continue implementing the feature. I don't have any hard limits, but usually when a diff is in the ballpark of 300 line changes, I'll make an attempt to submit a PR with those isolated changes.

Note: this will only calculate stats for files already in the index, e.g. new files won't be included unless they are added with git add -N first.

Note: to calculate these stats on changes that have been staged, execute git ss --cached. I don't think I do this often enough to warrant an alias for it.

Changes

  • Add an alias to return the stats of the diff vs. master.

    Minor

  • Shuffle some aliases around.