From 072eebfbdd8d6da31e5e89212ca6669b50993ea1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 3 Aug 2017 12:08:31 +0100 Subject: [PATCH] dgit: print-dpkg-source-ignores action 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 --- debian/changelog | 4 ++++ dgit | 9 +++++++++ dgit.1 | 7 +++++++ 3 files changed, 20 insertions(+) diff --git a/debian/changelog b/debian/changelog index 7bae4d2e..81059b50 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 fc9dac73..3c94f036 100755 --- 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 2233d959..b3b887f1 100644 --- 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 -- 2.30.2