Skip to content

Commit

Permalink
Add export option to p
Browse files Browse the repository at this point in the history
This is a preliminary attempt at git integration.

Signed-off-by: Neil Brown <[email protected]>
  • Loading branch information
neilbrown committed Jun 13, 2006
1 parent d2d76de commit 7c2207f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions p
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,25 @@ case $cmd in
done
> .patches/resolving
;;

export )
# there must be only one patch. We
# git commit, p commit, p rebase
if [ -n `ls .patches/applied` ]
then
echo 'Cannot export when there are applied patches'
exit 1;
fi
make_diff
if [ -s .patches/patch ]
then
# Ok, go for it.
git add `cat .patches/files`
git commit -a -F .patches/notes
$0 commit
$0 rebase
fi
;;
pull )
cd .patches/SOURCE && bk pull
;;
Expand Down

0 comments on commit 7c2207f

Please sign in to comment.