Rename Repository.head to Repository.head_ref
authorCatalin Marinas <catalin.marinas@gmail.com>
Fri, 6 Jun 2008 20:35:14 +0000 (21:35 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sun, 8 Jun 2008 22:20:14 +0000 (23:20 +0100)
commit2b8d32ac66a07ca070910d653a48948c87e8f87f
tree9ec21859bc33f040697b0ca7b34ce0930c5c52a5
parentd454cc061c8c401ecc57863cb977a06341d12653
Rename Repository.head to Repository.head_ref

This is to avoid confusion with the Stack.head function which returns
a commit object rather than a file name. The patch also changes the
"new" function to use stack.head directly rather than via the
Repository.refs... object.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
Acked-by: Karl Hasselström <kha@treskal.com>
stgit/commands/new.py
stgit/lib/git.py
stgit/lib/stack.py