From: Ian Jackson Date: Mon, 16 Jan 2017 01:10:03 +0000 (+0000) Subject: gitattributes: Suppress transformations in our cloned trees X-Git-Tag: archive/debian/3.3~13 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=edf2e3761f78147bf4fe4fcb0c23f0c3a227d1c8;hp=8ac258a499a5d034684d47c6144be82b87535c24 gitattributes: Suppress transformations in our cloned trees The user wants a checkout of the actual source tree, so that their checkout and the source package are identical. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 0df3f753..db8d1f72 100755 --- a/dgit +++ b/dgit @@ -3367,6 +3367,7 @@ END sub setup_new_tree () { setup_mergechangelogs(); setup_useremail(); + setup_gitattrs(); } sub multisuite_suite_child ($$$) { diff --git a/dgit.7 b/dgit.7 index c3e58185..acc7cc1a 100644 --- a/dgit.7 +++ b/dgit.7 @@ -221,6 +221,12 @@ they can cause trouble, because the working tree files can differ from the git revision history (and therefore from the source packages). + +So dgit clone +and dgit setup-new-tree +disable transforming gitattributes +by default, +by creating a .git/info/attributes. .SH PACKAGE SOURCE FORMATS If you are not the maintainer, you do not need to worry about the source format of the package. You can just make changes as you like