[csw-devel] [POLICY] mGAR v2: Use git add -p during makepatch

Ben Walton bwalton at opencsw.org
Sun Feb 6 16:44:16 CET 2011


...it does require multiple invocations of makepatch though.

Maciej Blizinski <maciej at opencsw.org> wrote:

This allows to create a series of patches from a single editing session. --- gar/v2/gar.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gar/v2/gar.mk b/gar/v2/gar.mk index 26ab578..c9cca43 100644 --- a/gar/v2/gar.mk +++ b/gar/v2/gar.mk @@ -490,7 +490,7 @@ makepatch-modulated: $(FILEDIR) 	@( if [ -d "$(WORKSRC)/.git" ]; then \ 		echo " ==> Makepatch: Looking for changes in modulation $(MODULATION)"; \ 		cd $(WORKSRC); \ -		git add -u; \ +		git add -u -p; \ 		git diff --cached --quiet; \ 		if test $$? -eq 0; then \ 			echo "No changes."; \ -- 1.7.3.2 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/devel/attachments/20110206/0b5f1b46/attachment.html>


More information about the devel mailing list