Commit Graph

20 Commits

Author SHA1 Message Date
Philippe Miossec 2d65a81050 revert workspace cleanup... 2013-06-07 12:26:24 +02:00
Philippe Miossec c1b461ec03 corrections.... 2013-06-04 21:14:23 +02:00
Philippe Miossec 191fad0ee3 refactoring of how get ref for a head branch... 2013-06-04 21:14:21 +02:00
Chris Wundram 4d034293c4 Merge branch 'master' into ignoreexcept 2013-05-29 16:33:13 -05:00
Matt Burke 479064a375 Merge pull request #379 from wundram/initbranch-nofetch
Added --nofetch option to init-branch
2013-05-29 05:52:40 -07:00
Chris Wundram 54807c30f5 Added --nofetch option to init-branch to set up TFS remote for branch
without doing a fetch.  Usefull to check config file before executing
fetch.
Now fails when --all and --nofetch are used on init-branch at the same time
Added test for case with --all and --nofetch
2013-05-27 08:19:59 -05:00
Chris Wundram bf61edfcc1 Added an additional ignore-except config option to add exceptions to files
ignored by the ignore-paths option.  For example if you want to ignore all
exe files except the .nuget/NuGet.exe file, you can add exe$ to the ignore-paths
and ^\.nuget to the ignore-except.

Added --except-regex command line option to RemoteOptions to set ignore-except
config.

New tfs-remotes for branches now will copy the ignore-paths and ingore-except
options from the default tfs remote.
2013-05-27 08:14:09 -05:00
Philippe Miossec ff30f738f4 Correct a strange message when no branches found 2013-05-24 21:34:30 +02:00
Philippe Miossec a2eeacbaac Clean workspace after running a tfs command
=> clone, fetch, init-branch, checkin, ...
2013-05-20 16:23:37 +02:00
Philippe Miossec bc1b49c8a8 Add init-branch features to branch command 2013-02-03 22:29:22 +01:00
Matt Burke bee409ed42 Fallout from those merge conflicts. 2013-01-09 16:58:05 -05:00
Matt Burke 4a3fe9c864 Handle the "not on a branch" case for init-branch. 2013-01-08 06:34:49 -05:00
David Alpert 1bcd9b0ea3 improving the error message when InitBranch fails because it needs a clone of the trunk 2013-01-02 00:50:21 -06:00
David Alpert b70c581c82 fixing a problem with InitBranch where it always failed. 2013-01-02 00:50:20 -06:00
David Alpert 637569c424 trailing slashes are stripped from incoming TFS repository paths so that exact comparisons match properly. 2013-01-02 00:50:19 -06:00
Philippe Miossec a2a1916f70 Correct clone message and init-branch using the good branches informations 2013-01-02 00:24:58 +01:00
Philippe Miossec f75b7ca5be Remove unallowed chars in labels
TFS permit chars that are not allowed in Git tag name (for exemple space)
2012-12-20 14:06:07 +01:00
Philippe Miossec 12617efec0 Save and re-use author file until overwritten 2012-12-04 13:42:09 +01:00
Philippe Miossec 5f4479241b Use author file to manage author mapping in init-branch command 2012-12-04 13:20:31 +01:00
Philippe Miossec da5a6201a5 Creation of the command "init-branch" to manage the cloning of a TFS branch (or all) from a TFS Server (2010, 2012 and 2008 partly)
Compiled for TFS Server 2008, 2010, 2012 and tested with TFS Server 2010, 2012

!! This command need that the clone of the TFS repository was made from the trunk (and not on the whole repository) and with history (not a quick-clone).

Usage for TFS 2010 and 2012 :
-------------------------------
* to clone one branch
git tfs init-branch $/Repository/path <git-branch-name-wished>
ex :
git tfs init-branch $/Repository/ProjectBranch
git tfs init-branch $/Repository/ProjectBranch myNewBranch

* to clone all branches
git tfs init-branch --all

Usage for TFS 2008 :
---------------------
* to clone one branch
git tfs init-branch--parent-branch=$/Repository/ProjectParentBranch $/Repository/path <git-branch-name-wished>

ex :
git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch
git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch myNewBranch
2012-11-19 22:03:42 +01:00