summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-02-11Move Tests Into SubdirectoryLibravatar David A. Greene1-0/+0
Move the git-subtree tests into a "t" subdir to reflect how testing works at the top level. Signed-off-by: David A. Greene <greened@obbligato.org>
2011-02-28Skip commit objects that should be trees, rather than copying them.Libravatar Avery Pennarun1-0/+1
An improvement on the previous patch, based on more reports from Sum-Wai Low.
2011-02-28It's also okay if an expected tree object is actually a commit.Libravatar Avery Pennarun1-1/+1
...that happens with submodules sometimes, so don't panic. Reported by Sum-Wai Low.
2010-11-09Added check to order of processed commits.Libravatar Jesse Greenwald1-0/+28
With debug messages enabled, "incorrect order" will be output whenever a commit is processed before its parents have been processed. This can be determined by checking to see if a parent isn't mapped to a new commit, but it has been processed.
2010-11-09Split cmd now processes commits in topo order.Libravatar Jesse Greenwald1-1/+1
Added the "--topo-order" option to git rev-list. Without this, it seems that the revision list is coming back in reverse order but it is sorted chronologically. This does not gurantee that parent commits are handled before child commits.
2010-10-21Fix a few typos/grammar-o's in the preceding commit.Libravatar Avery Pennarun1-7/+7
2010-10-21docs: Description, synopsys, options and examples changes.Libravatar John Yani1-43/+69
Description: Made the difference from submodules and the subtree merge strategy clearer. Synopsys and options: Synchronize with 'git subtree -h' output. I hope, properly. Examples: Added example descriptions in captions. Small fixes. Signed-off-by: John Yani <vanuan@gmail.com>
2010-10-21Fixing eval syntax error.Libravatar Cole Stanfield1-1/+1
2010-08-12Fix typo: an -> aLibravatar Avery Pennarun1-1/+1
Thanks to Vanuan on github.
2010-07-21docs: simplify example 1Libravatar Bryan Larsen1-7/+3
The documentation was written prior to Wayne Walter's 2-parameter add. Using 2-parameter add in example 1 makes the example much simpler.
2010-06-24Another fix for PATH and msysgit.Libravatar Avery Pennarun1-3/+1
Evan Shaw tells me the previous fix didn't work. Let's use this one instead, which he says does work. This fix is kind of wrong because it will run the "correct" git-sh-setup *after* the one in /usr/bin, if there is one, which could be weird if you have multiple versions of git installed. But it works on my Linux and his msysgit, so it's obviously better than what we had before.
2010-06-24Merge remote branch 'origin/master'Libravatar Avery Pennarun2-5/+26
* origin/master: Fixed regression with splitting out new subtree Use 'git merge -Xsubtree' when git version >= 1.7.0.
2010-06-24(Hopefully) fix PATH setting for msysgit.Libravatar Avery Pennarun1-0/+4
Reported by Evan Shaw. The problem is that $(git --exec-path) includes a 'git' binary which is incompatible with the one in /usr/bin; if you run it, it gives you an error about libiconv2.dll. You might think we could just add $(git --exec-path) at the *end* of PATH, but then if there are multiple versions of git installed, we could end up with the wrong one; earlier versions used to put git-sh-setup in /usr/bin, so we'd pick up that one before the new one. So now we just set PATH back to its original value right after running git-sh-setup, and we should be okay.
2010-05-20Fixed regression with splitting out new subtreeLibravatar Pelle Wessman2-1/+13
A folder in a repository that wasn't initially imported as a subtree could no longer be splitted into an entirely new subtree with no parent. A fix and a new test to fix that regression is added here.
2010-05-07Use 'git merge -Xsubtree' when git version >= 1.7.0.Libravatar Pelle Wessman1-4/+13
It's possible to specify the subdir of a subtree since Git 1.7.0 - adding support for that functionality to make the merge more stable. Also checking for git version - now only uses the new subtree subdir option when on at least 1.7.
2010-02-13Added new 'push' command and 2-parameter form of 'add'.Libravatar Wayne Walter4-18/+77
Now you can do: git subtree add --prefix=whatever git://wherever branchname to add a new branch, instead of rather weirdly having to do 'git fetch' first. You can also split and push in one step: git subtree push --prefix=whatever git://wherever newbranch (Somewhat cleaned up by apenwarr.)
2010-02-08Docs: cleaning up example textual redundancyLibravatar Dan Sabath1-3/+3
Signed-off-by: Dan Sabath <dsabath@whitepages.com>
2010-02-08docs: add simple 'add' case to clarify setup.Libravatar Dan Sabath1-2/+26
This patch adds a simple use case for adding a library to an existing repository. Signed-off-by: Dan Sabath <dsabath@whitepages.com>
2010-02-08Some recent tests accidentally depended on very new versions of git.Libravatar Avery Pennarun1-2/+2
The "--format" option is too new. Use "--pretty=format:" (which means the same thing) instead. Now it works again on git 1.6.0 (at least).
2010-02-08Oops. Apparently I didn't run 'make test' after most recent change.Libravatar Avery Pennarun1-1/+2
Thanks to Dan Sabath for pointing that out.
2010-02-08Improve checking for existence of the --prefix directory.Libravatar Avery Pennarun2-3/+21
For add, the prefix must *not* already exist. For all the other commands, it *must* already exist.
2010-02-06Make sure that <prefix> exists when splitting.Libravatar Win Treese2-0/+13
And test cases for that check, as well as for an error if no prefix is specified at all.
2010-02-06Make tests pass with recent git (1.7.0 and up).Libravatar Avery Pennarun1-1/+5
It seems that in older versions, --message="" was interpreted as "use the default commit message" instead of "use an empty commit message", and git-subtree was depending on this behaviour. Now we don't, so tests pass again.
2010-02-05git-subtree.txt: add another example.Libravatar Win Treese1-2/+19
2010-02-02Jakub's changes broke the progress message slightly.Libravatar Avery Pennarun1-2/+1
We really need that ^M (\r), not a ^J (\n) if we want the status message to overwrite itself nicely.
2010-02-02Merge branch 'master' of git://github.com/psionides/git-subtreeLibravatar Avery Pennarun3-17/+164
* 'master' of git://github.com/psionides/git-subtree: improved rev_is_descendant_of_branch() function added temporary test dirs to gitignore added tests for recent changes fixed bug in commit message for split changed alias for --prefix from -p to -P fix for subtree split not finding proper base for new commits allow using --branch with existing branches if it makes sense added -m/--message option for setting merge commit message added -p alias for --prefix
2010-02-02Fix refspecs in given example for git subtree pull.Libravatar Arlen Cuss1-1/+1
(Updated slightly by apenwarr)
2010-01-12improved rev_is_descendant_of_branch() functionLibravatar Jakub Suder1-2/+2
2010-01-12added temporary test dirs to gitignoreLibravatar Jakub Suder1-0/+2
2010-01-12added tests for recent changesLibravatar Jakub Suder1-2/+104
2010-01-12fixed bug in commit message for splitLibravatar Jakub Suder1-1/+1
2010-01-12changed alias for --prefix from -p to -PLibravatar Jakub Suder1-2/+2
2010-01-10fix for subtree split not finding proper base for new commitsLibravatar Jakub Suder1-1/+4
2010-01-10allow using --branch with existing branches if it makes senseLibravatar Jakub Suder1-8/+26
2010-01-10added -m/--message option for setting merge commit messageLibravatar Jakub Suder1-4/+26
2010-01-06added -p alias for --prefixLibravatar Jakub Suder1-2/+2
2009-11-20Weird, I forgot to have 'make test' call test.sh.Libravatar Avery Pennarun1-0/+4
2009-11-15make git version dynamic when building documentationLibravatar Ben Walton1-1/+3
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
2009-11-15add installation support to MakefileLibravatar Ben Walton1-0/+20
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
2009-11-15Oops, forgot a COPYING file. It's GPLv2.Libravatar Avery Pennarun1-0/+339
Thanks to Ben Walton for pointing this out.
2009-11-04Add some tips for how to install.Libravatar Avery Pennarun2-0/+14
2009-10-02cmd_pull didn't support --squash correctly.Libravatar Avery Pennarun1-2/+3
We should implement it as git fetch ... git subtree merge ... But we were instead just calling git pull -s subtree ... because 'git subtree merge' used to be just an alias for 'git merge -s subtree', but it no longer is.
2009-10-02Fix a minor problem in identifying squashes vs. normal splits.Libravatar Avery Pennarun1-1/+3
This didn't seem to have any noticeable side effects other than suspicious-looking log messages when you used -d.
2009-10-02If someone provides a --prefix that ends with slash, strip the slash.Libravatar Avery Pennarun3-9/+5
Prefixes that differ only in the trailing slash should be considered identical. Also update the test to check that this works.
2009-10-02Merge branch 'master' of git://github.com/voxpelli/git-subtreeLibravatar Avery Pennarun1-0/+1
* 'master' of git://github.com/voxpelli/git-subtree: Check that the type of the tree really is a tree and not a commit as it seems to sometimes become when eg. a submodule has existed in the same position previously.
2009-10-02Add a README that says to email me instead of using github mail.Libravatar Avery Pennarun1-0/+8
What's with this new generation who hates email so much?
2009-09-30Check that the type of the tree really is a tree and not a commit as it ↵Libravatar Pelle Wessman1-0/+1
seems to sometimes become when eg. a submodule has existed in the same position previously.
2009-08-26Fix behaviour if you have a branch named the same as your --prefixLibravatar Avery Pennarun3-7/+2
We were trying to 'git checkout $prefix', which is ambiguous if $prefix names a directory *and* a branch. Do 'git checkout -- $prefix' instead. The main place this appeared was in 'git subtree add'. Reported by several people.
2009-08-26Improve patch to use git --exec-path: add to PATH instead.Libravatar Avery Pennarun1-1/+2
If you (like me) are using a modified git straight out of its source directory (ie. without installing), then --exec-path isn't actually correct. Add it to the PATH instead, so if it is correct, it'll work, but if it's not, we fall back to the previous behaviour.
2009-08-20Add explicit path of git installation by 'git --exec-path'.Libravatar kTln21-1/+1
As pointed out by documentation, the correct use of 'git-sh-setup' is using $(git --exec-path) to avoid problems with not standard installations. Signed-off-by: gianluca.pacchiella <pacchiel@studenti.ph.unito.it>