Currently it's not possible to keep track of changes that happen to a branch, specifically; when a branch is created and rebased. This patch series aims to fix that. The last patch is the important one, but in the process of testing this I found out that the GIT_DIR environment variable is not always set, so the hooks (all of them) get confused. Too many changes since v1 to list them all. Felipe Contreras (3): sh-setup: export GIT_DIR run-command: make sure hooks have always GIT_DIR Add 'update-branch' hook Documentation/githooks.txt | 15 +++++++++ branch.c | 12 ++++++- builtin/clone.c | 8 +++-- builtin/reset.c | 5 +++ git-rebase--interactive.sh | 4 +++ git-rebase.sh | 4 +++ git-sh-setup.sh | 1 + run-command.c | 24 ++++++++++++-- t/t5408-update-branch-hook.sh | 76 +++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 144 insertions(+), 5 deletions(-) create mode 100755 t/t5408-update-branch-hook.sh -- 1.9.2+fc1.1.g5c924db -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html