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

Maciej Blizinski maciej at opencsw.org
Sun Feb 6 16:13:40 CET 2011


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



More information about the devel mailing list