Check for local changes with "goto"
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 9 Apr 2009 20:40:58 +0000 (23:40 +0300)
committerCatalinMarinas <cmarinas@laptop.(none)>
Thu, 9 Apr 2009 20:40:58 +0000 (23:40 +0300)
commitee11a2896d0815d1530c5dc2a7e4719409b7833f
tree93f8f6834b95c7377d2d6268a6afb563e8f70edd
parent32d7545de276f1004db22db07b46865b5c27b14c
Check for local changes with "goto"

This is done by default, unless the --keep option is passed, for
consistency with the "pop" command. The index is checked in the
Transaction.run() function so that other commands could benefit from
this feature (off by default).

This behaviour can be overridden by setting the stgit.autokeep option.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
Acked-by: Karl Hasselström <kha@treskal.com>
examples/gitconfig
stgit/argparse.py
stgit/commands/goto.py
stgit/lib/git.py
stgit/lib/transaction.py
t/t2300-refresh-subdir.sh
t/t2800-goto-subdir.sh
t/t3000-dirty-merge.sh