gbp-pull.sgml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <refentry id="man.gbp.pull">
  2. <refentryinfo>
  3. <address>
  4. &dhemail;
  5. </address>
  6. <author>
  7. &dhfirstname;
  8. &dhsurname;
  9. </author>
  10. </refentryinfo>
  11. <refmeta>
  12. <refentrytitle>gbp-pull</refentrytitle>
  13. &dhsection;
  14. </refmeta>
  15. <refnamediv>
  16. <refname>gbp-pull</refname>
  17. <refpurpose>Safely update a repository from remote</refpurpose>
  18. </refnamediv>
  19. <refsynopsisdiv>
  20. <cmdsynopsis>
  21. &gbp-pull;
  22. &man.common.options.synopsis;
  23. <arg><option>--force</option></arg>
  24. <arg><option>--redo-pq</option></arg>
  25. <arg><option>--[no-]pristine-tar</option></arg>
  26. <arg><option>--ignore-branch</option></arg>
  27. <arg><option>--debian-branch=</option><replaceable>branch_name</replaceable></arg>
  28. <arg><option>--upstream-branch=</option><replaceable>branch_name</replaceable></arg>
  29. <arg><option>--depth=</option><replaceable>depth</replaceable></arg>
  30. </cmdsynopsis>
  31. </refsynopsisdiv>
  32. <refsect1>
  33. <title>DESCRIPTION</title>
  34. <para>
  35. &gbp-pull; updates the <emphasis>debian</emphasis>,
  36. <emphasis>upstream</emphasis> and <emphasis>pristine-tar</emphasis>
  37. branches from a remote repository in one go. It checks if the update is safe (would
  38. result in a <emphasis>fast-forward</emphasis> merge) and aborts otherwise.
  39. </para>
  40. </refsect1>
  41. <refsect1>
  42. <title>OPTIONS</title>
  43. <variablelist>
  44. &man.common.options.description;
  45. <varlistentry>
  46. <term><option>--force</option></term>
  47. <listitem>
  48. <para>force a branch update even if this results in a non fast
  49. forward update. <warning><para>Forcing a branch update
  50. makes you lose your modifications.</para></warning></para>
  51. </listitem>
  52. </varlistentry>
  53. <varlistentry>
  54. <term><option>--redo-pq</option></term>
  55. <listitem>
  56. <para>also rebuild the corresponding patch-queue using &gbp-pq;.
  57. <warning><para>This drops the patch-queue branch if it exists.</para></warning></para>
  58. </listitem>
  59. </varlistentry>
  60. <varlistentry>
  61. <term><option>--ignore-branch</option>
  62. </term>
  63. <listitem>
  64. <para>Don't care if we're on a branch or in detached head state.</para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry>
  68. <term><option>--debian-branch</option>=<replaceable>branch_name</replaceable>
  69. </term>
  70. <listitem>
  71. <para>The branch in the Git repository the Debian package is being
  72. developed on, default is <replaceable>master</replaceable>.</para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry>
  76. <term><option>--upstream-branch</option>=<replaceable>branch_name</replaceable>
  77. </term>
  78. <listitem>
  79. <para>The branch in the &git; repository the upstream sources are put
  80. onto. Default is <replaceable>upstream</replaceable>.</para>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry>
  84. <term><option>--depth</option>=<replaceable>depth</replaceable>
  85. </term>
  86. <listitem>
  87. <para>Git history depth, for deepening shallow git clones.</para>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry>
  91. <term><option>--pristine-tar</option>
  92. </term>
  93. <listitem>
  94. <para>Whether to update the pristine-tar branch too.</para>
  95. </listitem>
  96. </varlistentry>
  97. </variablelist>
  98. </refsect1>
  99. <refsect1>
  100. <title>EXIT CODES</title>
  101. <para>
  102. When &gbp-pull; finishes, it indicates success or failure with its exit code:
  103. </para>
  104. <variablelist>
  105. <varlistentry>
  106. <term><option>0</option></term>
  107. <listitem>
  108. <para>Success.</para>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry>
  112. <term><option>1</option></term>
  113. <listitem>
  114. <para>An error occurred during the pull, see the printed error message for details.</para>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry>
  118. <term><option>2</option></term>
  119. <listitem>
  120. <para>At least one branch couldn't be fast forwarded.</para>
  121. </listitem>
  122. </varlistentry>
  123. </variablelist>
  124. </refsect1>
  125. <refsect1>
  126. &man.gbp.config-files;
  127. </refsect1>
  128. <refsect1>
  129. <title>SEE ALSO</title>
  130. <para>
  131. <xref linkend="man.gbp.buildpackage"/>,
  132. <xref linkend="man.gbp.clone"/>,
  133. <xref linkend="man.gbp.pq"/>,
  134. <xref linkend="man.gbp.conf"/>
  135. </para>
  136. </refsect1>
  137. <refsect1>
  138. <title>AUTHOR</title>
  139. <para>&dhusername; &dhemail;</para>
  140. </refsect1>
  141. </refentry>