Skip to content

Instantly share code, notes, and snippets.

@aprescott
Last active December 14, 2015 00:08
Show Gist options
  • Save aprescott/4996185 to your computer and use it in GitHub Desktop.
Save aprescott/4996185 to your computer and use it in GitHub Desktop.
Show all lines added to `some-dir/` in the last week (on all branches), restricted to: only newly added files, those by author matching "adam".
#
# Show all lines added to `some-dir/` in the last week (on all branches), restricted to:
#
# * only newly added files,
# * those by author matching "adam".
#
git log --author=adam --since={1.week.ago} --all --diff-filter=A -p -- some-dir/ |
# lines added
grep -E '^\+' |
# ignoring the paths to the files
grep -v -E '^\+\+\+'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment