From c3c76ac7b6ffbfb2a005faddd57494ad674963bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Mon, 27 Dec 2010 21:42:55 +0100 Subject: gbp-pull: Better document --force and --redo-pq --- docs/manpages/gbp-pull.sgml | 11 +++++++---- gbp-pull | 10 +++++----- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/manpages/gbp-pull.sgml b/docs/manpages/gbp-pull.sgml index 2f2b30ee..bc1e97c3 100644 --- a/docs/manpages/gbp-pull.sgml +++ b/docs/manpages/gbp-pull.sgml @@ -22,8 +22,8 @@ &gbp-pull; - + branch_name branch_name @@ -45,13 +45,16 @@ - force update even if this results in a non fast forward update + force a branch update even if this results in a non fast + forward update. Forcing a branch updates + makes you lose your modifications. - also rebuild the corresponding patch-queue using &gbp-pq; + also rebuild the corresponding patch-queue using &gbp-pq;. + This drops the patch-queue branch if it exists. @@ -81,7 +84,7 @@ - generate pristine-tar delta file + Wheter to update the pristine-tar branch too. diff --git a/gbp-pull b/gbp-pull index 4f814b24..f8aa9c85 100755 --- a/gbp-pull +++ b/gbp-pull @@ -70,15 +70,15 @@ def main(argv): parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='', usage='%prog [options] - safely update a repository from remote') - branch_group = GbpOptionGroup(parser, "branch options", "branch layout options") + branch_group = GbpOptionGroup(parser, "branch options", "branch update and layout options") parser.add_option_group(branch_group) + branch_group.add_option("--force", action="store_true", dest="force", default=False, + help="force a branch update even if can't be fast forwarded") + branch_group.add_option("--redo-pq", action="store_true", dest="redo_pq", default=False, + help="redo the patch queue branch after a pull. Warning: this drops the old patch-queue branch") branch_group.add_config_file_option(option_name="upstream-branch", dest="upstream_branch") branch_group.add_config_file_option(option_name="debian-branch", dest="debian_branch") branch_group.add_boolean_config_file_option(option_name="pristine-tar", dest="pristine_tar") - parser.add_option("--force", action="store_true", dest="force", default=False, - help="force update even if not fast forward") - parser.add_option("--redo-pq", action="store_true", dest="redo_pq", default=False, - help="Redo the patch queue branch after a pull. Warning: this drops the old patch-queue branch") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, help="verbose command execution") parser.add_config_file_option(option_name="color", dest="color") -- cgit v1.2.3