mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_world_patchin.sh: overwrite global diff.renames git option
@ 2013-01-31 10:46 Andreas Bießmann
  2013-02-03 11:25 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Bießmann @ 2013-01-31 10:46 UTC (permalink / raw)
  To: PTXdist list

When working with pure git work flow the git parameter diff.renames may save
space when sending patches or storing them.
However using a patch generated with this parameter in a mixed git/quilt/patch
work flow is useless cause quilt/patch can not work with this information,
they need explicit delete of lines and add of lines.

This patch change the local git configuration of an extracted package to force
the diff.renames parameter to false witch will overwrite a possible global
configuration.

Signed-off-by: Andreas Bießmann <andreas.biessmann@corscience.de>
---
 scripts/lib/ptxd_make_world_patchin.sh |    1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
index fc9dbfa..8f9bd42 100644
--- a/scripts/lib/ptxd_make_world_patchin.sh
+++ b/scripts/lib/ptxd_make_world_patchin.sh
@@ -65,6 +65,7 @@ ptxd_make_world_patchin_apply_git_init()
 	git tag "${pkg_pkg//\~/-}" &&
 	git tag base &&
 	git config alias.ptx-patches "!${PTXDIST_TOPDIR}/scripts/git-ptx-patches \"\${@}\"" &&
+	git config diff.renames false &&
 	echo "patchin: git: done"
     fi
 }
-- 
1.7.10.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-03 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-31 10:46 [ptxdist] [PATCH] ptxd_make_world_patchin.sh: overwrite global diff.renames git option Andreas Bießmann
2013-02-03 11:25 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox