Documentation / git-apply.txton commit mailsplit: -d<prec> (e11fc02)
   1git-apply(1)
   2============
   3v0.1, June 2005
   4
   5NAME
   6----
   7git-apply - Apply patch on a GIT index file and a work tree
   8
   9
  10SYNOPSIS
  11--------
  12'git-apply' [--stat] [--summary] [--check] [--index] [--show-files] [--apply] [<patch>...]
  13
  14DESCRIPTION
  15-----------
  16Reads supplied diff output and applies it on a git index file
  17and a work tree.
  18
  19OPTIONS
  20-------
  21<patch>...::
  22        The files to read patch from.  '-' can be used to read
  23        from the standard input.
  24
  25--stat::
  26        Instead of applying the patch, output diffstat for the
  27        input.  Turns off "apply".
  28
  29--summary::
  30        Instead of applying the patch, output a condensed
  31        summary of information obtained from git diff extended
  32        headers, such as creations, renames and mode changes.
  33        Turns off "apply".
  34
  35--check::
  36        Instead of applying the patch, see if the patch is
  37        applicable to the current work tree and/or the index
  38        file and detects errors.  Turns off "apply".
  39
  40--index::
  41        When --check is in effect, or when applying the patch
  42        (which is the default when none of the options that
  43        disables it is in effect), make sure the patch is
  44        applicable to what the current index file records.  If
  45        the file to be patched in the work tree is not
  46        up-to-date, it is flagged as an error.  This flag also
  47        causes the index file to be updated.
  48
  49--show-files::
  50        Show summary of files that are affected by the patch.
  51
  52--apply::
  53        If you use any of the options marked ``Turns off
  54        "apply"'' above, git-apply reads and outputs the
  55        information you asked without actually applying the
  56        patch.  Give this flag after those flags to also apply
  57        the patch.
  58
  59
  60Author
  61------
  62Written by Linus Torvalds <torvalds@osdl.org>
  63
  64Documentation
  65--------------
  66Documentation by Junio C Hamano
  67
  68GIT
  69---
  70Part of the gitlink:git[7] suite
  71