Skip to content

Instantly share code, notes, and snippets.

@NahimNasser
NahimNasser / weekly_git_log_generator.py
Created February 12, 2013 18:39
Git log summary, week by week for your entire project.
"""
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")
anonymous
anonymous / git-svn-diff.sh
Created August 31, 2010 18:24
#!/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