summaryrefslogtreecommitdiff
path: root/doc/git-union-merge.mdwn
blob: ed1778910b40b072e29ffe812a13e318a7a26219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# NAME

git-union-merge - Join branches together using a union merge

# SYNOPSIS

git union-merge ref ref newref

# DESCRIPTION

Does a union merge between two refs, storing the result in the
specified newref.

The union merge will always succeed, but assumes that files can be merged
simply by concacenating together lines from all the oldrefs, in any order.
So, this is useful only for branches containing log-type data.

Note that this does not touch the checked out working copy. It operates
entirely on git refs and branches.

# EXAMPLE

	git union-merge git-annex origin/git-annex refs/heads/git-annex 

Merges the current git-annex branch, and a version from origin,
storing the result in the git-annex branch.

# BUGS

File modes are not currently merged.

# AUTHOR

Joey Hess <joey@kitenet.net>

<http://git-annex.branchable.com/>

Warning: this page is automatically made into a man page via [mdwn2man](http://git.ikiwiki.info/?p=ikiwiki;a=blob;f=mdwn2man;hb=HEAD).  Edit with care