📄 quilt.1.in
字号:
.\\" Created by Martin Quinson from the tex documentation.\\".TH quilt 1 "June 2, 2006" "quilt" .SH NAMEquilt \\- tool to manage series of patches.SH SYNOPSIS.B quilt[-h] command [options].SH DESCRIPTIONQuilt is a tool to manage large sets of patches by keeping track of the changes each patch makes. Patches can be applied, un-applied, refreshed,etc. The key philosophical concept is that your primary output is patches.With quilt, all work occurs within a single directory tree. Commands can bebe invoked from anywhere within the source tree. They are of the form.B quilt cmdsimilar to CVS commands. They can be abbreviated as long as the specifiedpart of the command is unique. All commands print some help text with.B quilt cmd -h.Quilt manages a stack of patches. Patches are applied incrementally on topof the base tree plus all preceding patches. They can be pushed on top ofthe stack .RB ( "quilt push" ),and popped off the stack.RB ( "quilt pop" ). Commands are available for querying the contents of the series file .RB ( "quilt series" ,see below), the contents of the stack .RB ( "quilt applied" , " quilt previous" , " quilt top" ),and the patches that are not applied at a particular moment .RB ( "quilt next" , " quilt unapplied" ).By default, most commands apply to the topmost patch on the stack.Patch files are located in the .I patchessub-directory of the source tree (see EXAMPLE OF WORKING TREE below). The .I QUILT_PATCHESenvironment variable can be used to override this location. The.I patchesdirectory may contain sub-directories. It may also be a symbolic linkinstead of a directory. A file called.I seriescontains a list of patch file names that defines the order in which patchesare applied. Unless there are means by which series files can be generatedautomatically, it is usually provided along with a set of patches. In thisfile, each patch file name is on a separate line. Patch files are identifiedby pathnames that are relative to the.I patchesdirectory; patches may be in sub-directories below this directory. Linesin the series file that start with a hash character (#) are ignored.You can also add a comment after each patch file name, introduced by aspace followed by a hash character. Whenquilt adds, removes, or renames patches, it automatically updates the seriesfile. Users of quilt can modify series files while some patches areapplied, as long as the applied patches remain in their original order. Different series files can be used to assemble patches in different ways,corresponding for example to different development branches.Before a patch is applied (or ``pushed on the stack''), copies of all filesthe patch modifies are saved to the .RI .pc/ patchdirectory. The patch is added to the list of currently applied patches(.pc/applied-patches). Later when a patch is regenerated .RB ( "quilt refresh" ),the backup copies in .RI .pc/ patchare compared with the current versions of the files in the source tree usingGNU diff. Documentation related to a patch can be put at the beginning of a patchfile. Quilt is careful to preserve all text that precedes the actual patchwhen doing a refresh. (This is limited to patches in unified format; see.B diffdocumentation).The series file is looked up in the root of the source tree, in the patchesdirectory, and in the .pc directory. The first series file that is found isused. This may also be a symbolic link, or a file with multiple hard links.Usually, only one series file is used for a set of patches, so thepatches sub-directory is a convenient location. The .pc directory and its sub-directories cannot be relocated, but it can bea symbolic link. While patches are applied to the source tree, thisdirectory is essential for many operations, including taking patches off thestack .RB ( "quilt pop" ),and refreshing patches .RB ( "quilt refresh" ).Files in the .pc directory are automatically removed when they areno longer needed, so there is no need to clean up manually..SH QUILT COMMANDS REFERENCE@REFERENCE@.SH COMMON OPTIONS TO ALL COMMANDS.IP \"\\fB--trace\\fP\" 8Runs the command in bash trace mode (-x). For internal debugging..IP \"\\fB--quiltrc\\fP file\" 8Use the specified configuration file instead of ~/.quiltrc (or/etc/quilt.quiltrc if ~/.quiltrc does not exist). See the pdfdocumentation for details about its possible contents. Thespecial value \"-\" causes quilt not to read any configurationfile..IP \"\\fB--version\\fP\" 8Print the version number and exit immediately..SH EXAMPLE OF WORKING TREE.fam C.RS.nfwork/ -+- ... |- patches/ -+- series | |- patch2.diff | |- patch1.diff | +- ... +- .pc/ -+- applied-patches |- patch1.diff/ -+- ... |- patch2.diff/ -+- ... +- ....fi.RE.fam T.SH EXAMPLEPlease refer to the pdf documentation for an example..SH CONFIGURATION FILEUpon startup, quilt evaluates the file .quiltrc in the user's homedirectory, or the file specified with the --quiltrc option. This fileis a regular bash script. Default options can be passed to any commandby defining a QUILT_COMMAND_ARGS variable. For example,QUILT_DIFF_ARGS="--color=auto" causes the output of quilt diff to besyntax colored when writing to a terminal.In addition to that, quilt recognizes the following variables:.IP QUILT_DIFF_OPTS 4Additional options that quilt shall pass to GNU diff when generatingpatches. A useful setting for C source code is "-p", which causes GNU diffto show in the resulting patch which function a change is in. .IP QUILT_PATCH_OPTS 4Additional options that quilt shall pass to GNU patch when applyingpatches. For example, some versions of GNU patch support the"--unified-reject-files" option for generating reject files in unifieddiff style. .IP QUILT_DIFFSTAT_OPTS 4Additional options that quilt shall pass to diffstat when generatingpatch statistics. For example, "-f0" can be used for an alternative outputformat. Recent versions of diffstat also support alternative roundingmethods ("-r1", "-r2")..IP QUILT_PATCHES 4The location of patch files, defaulting to "patches"..IP QUILT_PATCHES_PREFIX 4If set to anything, quilt will prefix patch names it prints with theirdirectory (QUILT_PATCHES)..IP QUILT_NO_DIFF_INDEX 4By default, quilt prepends an Index: line to the patches it generates.If this variable is set to anything, no line is prepended. This isa shortcut to adding --no-index to both QUILT_DIFF_ARGS andQUILT_REFRESH_ARGS..IP QUILT_NO_DIFF_TIMESTAMP 4By default, quilt includes timestamps in headers when generating patches.If this variable is set to anything, no timestamp will be included. Thisis a shortcut to adding --no-timestamps to both QUILT_DIFF_ARGS andQUILT_REFRESH_ARGS..IP EDITOR 4The program to run to edit files. If it isn't redefined in theconfiguration file, $EDITOR as defined in the environment will be used..SH AUTHORSQuilt started as a series of scripts written by Andrew Morton(patch-scripts). Based on Andrew's ideas, Andreas Gruenbacher completelyrewrote the scripts, with the help of several other contributors (seeAUTHORS file in the distribution).This man page was written by Martin Quinson, based on information found inthe pdf documentation, and in the help messages of each commands..SH SEE ALSOThe pdf documentation, which should be under /usr/share/doc/quilt/quilt.pdf.Note that some distributors compress this file. .BR zxpdf ( 1 )can be used to display compressed pdf files..BR diff ( 1 ),.BR patch ( 1 ).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -