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
""" | |
Outputs a week by week commit log with one line commit messages for your entire git repository | |
from start to finish | |
""" | |
import commands | |
import datetime | |
status, start_date = commands.getstatusoutput("git log --date=short --format='%cd' --reverse | head -1") | |
status, end_date = commands.getstatusoutput("git log --date=short --format='%cd' -1") |
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
#!/bin/sh | |
TRUNK_HASH=`git show-ref --hash remotes/trunk` | |
REV=`git svn find-rev "$TRUNK_HASH"` | |
git diff --no-prefix $* remotes/trunk | | |
sed " | |
# New files have /dev/null as their original path | |
/^--- \/dev\/null/{ | |
# Read a line into the pattern space | |
N | |
# Do a multiline substitution |