chiark / gitweb /
dgit: print-dpkg-source-ignores action
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 11:08:31 +0000 (12:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 3 Aug 2017 21:41:51 +0000 (22:41 +0100)
New print-dpkg-source-ignores option to print the big rune you need to
pass to dpkg-source to make it work exactly the right.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit
dgit.1

index e1c2c476d2b44bca3a9c80061f9a08b7566991c3..ae7bf02a6c35997af23e95069b0d77fad35b0276 100644 (file)
@@ -6,6 +6,10 @@ dgit (4.1~) experimental; urgency=medium
     worktrees on different filesystems may not work; that's a
     matter for the future.  Closes:#868515.
 
+  Other improvements to dgit:
+  * New print-dpkg-source-ignores option to print the big rune
+    you need to pass to dpkg-source to make it work exactly the right.
+
   Documentation:
   * dgit-user(7): Provide information about how to use sbuild.
     Quite ugly due to #868527.  Closes:#868526.
diff --git a/dgit b/dgit
index fc9dac73573c3feefb844266fb5063198fa024e0..3c94f036ac144da9742718a75745ac1dc6b6e53a 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6425,6 +6425,15 @@ sub cmd_print_dgit_repos_server_source_url {
     print $url, "\n" or die $!;
 }
 
+sub pre_print_dpkg_source_ignores {
+    not_necessarily_a_tree();
+}
+sub cmd_print_dpkg_source_ignores {
+    badusage "no arguments allowed to dgit print-dpkg-source-ignores"
+       if @ARGV;
+    print "@dpkg_source_ignores\n" or die $!;
+}
+
 sub cmd_setup_mergechangelogs {
     badusage "no arguments allowed to dgit setup-mergechangelogs" if @ARGV;
     local $isuite = 'DGIT-SETUP-TREE';
diff --git a/dgit.1 b/dgit.1
index 2233d95941fa34f9ec4ac9e9a4a77c25f77cda34..b3b887f1c46165eb9f4f2b3b70b485168ba5a93d 100644 (file)
--- a/dgit.1
+++ b/dgit.1
@@ -343,6 +343,13 @@ as actually being used on the dgit git server, as a git tree.
 Prints the url used by dgit clone-dgit-repos-server.
 This is hopefully suitable for use as a git remote url.
 It may not be useable in a browser.
+.TP
+.BI "dgit print-dpkg-source-ignores"
+Prints the -i and -I arguments which must be passed to dpkg-souce
+to cause it to exclude exactly the .git diredcory
+and nothing else.
+The separate arguments are unquoted, separated by spaces,
+and do not contain spaces.
 .SH OPTIONS
 .TP
 .BR --dry-run " | " -n