summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb93c19)
raw | patch | inline | side by side (parent: cb93c19)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 10 Nov 2005 04:53:54 +0000 (20:53 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 12 Nov 2005 05:18:18 +0000 (21:18 -0800) |
This is a specialized hack to help no-base merges, but other
people might find it useful, so let's document it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
people might find it useful, so let's document it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-apply.txt | patch | blob | history | |
apply.c | patch | blob | history |
index eb8f90683724c69f1a47dfcc53d93e1d6accb3d0..6702a18c7e798018fc33c67001724c8e7d3a90ce 100644 (file)
SYNOPSIS
--------
-'git-apply' [--stat] [--numstat] [--summary] [--check] [--index] [--apply] [--index-info] [-z] [<patch>...]
+'git-apply' [--stat] [--numstat] [--summary] [--check] [--index] [--apply] [--no-add] [--index-info] [-z] [<patch>...]
DESCRIPTION
-----------
patch. Give this flag after those flags to also apply
the patch.
+--no-add::
+ When applying a patch, ignore additions made by the
+ patch. This can be used to extract common part between
+ two files by first running `diff` on them and applying
+ the result with this option, which would apply the
+ deletion part but not addition part.
Author
------
index 472bcdc369aec31d3c72d8b4bca74feca2798281..34181188b890df19c8a5c96a1c1eec21db4805c1 100644 (file)
--- a/apply.c
+++ b/apply.c
static int show_index_info = 0;
static int line_termination = '\n';
static const char apply_usage[] =
-"git-apply [--stat] [--numstat] [--summary] [--check] [--index] [--apply] [--index-info] [-z] <patch>...";
+"git-apply [--stat] [--numstat] [--summary] [--check] [--index] [--apply] [--no-add] [--index-info] [-z] <patch>...";
/*
* For "diff-stat" like behaviour, we keep track of the biggest change