Commit Graph

413 Commits

Author SHA1 Message Date
Sean M. Collins 88e8fe2cec Add reference to NDesk.Options 2012-02-13 14:45:00 -05:00
Matt Burke 2f8cc11a1d avoid null reference exception.
Fixes #116.
2012-02-10 10:29:41 -05:00
ivan-danilov 7901c1a1f9 Merge pull request #130 from Ang3lFir3/patch-1
path addition examples ... for those not familiar
2012-02-10 05:33:24 -08:00
Eric Ridgeway 1bb5eed37c in honor of http://truncatedcodr.wordpress.com/2012/02/07/git-tfs-instruction-add-directory-to-your-path/ I added some examples and the referenced link. 2012-02-07 10:42:02 -08:00
Sean M. Collins 8a35f4a976 Merge pull request #129 from salty-horse/download_link
Fix download link in README
2012-02-02 12:49:00 -08:00
Ori Avtalion b099bd9baa Fix download link in README 2012-02-02 21:31:50 +02:00
Matt Burke ddd7b8b320 Merge pull request #128 from sc68cal/default_comment
Change Checkintool to build default comment by default
2012-02-01 12:04:57 -08:00
Sean M. Collins bbcf521be9 Merge remote-tracking branch 'git-tfs/master' into default_comment
Conflicts:
	GitTfs/Commands/CheckinOptions.cs
2012-02-01 10:46:51 -05:00
Sean M. Collins 7c9054adad Rename variable for clarity 2012-02-01 10:21:24 -05:00
Matt Burke dcb1bf7782 Merge pull request #127 from spraints/53-ndesk-options
Convert to NDesk.Options
2012-02-01 04:48:25 -08:00
Matt Burke 56024c6ba7 ShelveList and Unshelve pass themselves to TFS plugins.
... so they need to have their config properties public.
2012-02-01 07:46:34 -05:00
Matt Burke bbd8c742ab Convert the rest to NDesk.Options. 2012-02-01 07:27:49 -05:00
Sean M. Collins 57c7085aeb Amend description for the default comment flag 2012-01-31 16:00:49 -05:00
Sean M. Collins d7972d362a Fixes #125
Inverts the build-default-comment flag. Default behavior
should now be to build the comment and place it
in the CheckinTool prompt.
2012-01-31 15:49:24 -05:00
Matt Burke 64408ed742 Convert Verify to NDesk.Options. 2012-01-31 08:27:22 -05:00
Matt Burke d20938c45f Convert Unshelve to NDesk.Options. 2012-01-31 08:25:52 -05:00
Matt Burke d958d4f8f2 Convert ShelveList to NDesk.Options. 2012-01-31 08:23:36 -05:00
Matt Burke 317108dbb4 Convert Shelve to NDesk.Options. 2012-01-31 08:17:43 -05:00
Matt Burke 414e09a374 Regions that cover the whole file are useless. 2012-01-31 08:17:29 -05:00
Matt Burke 87bd5682a7 Remove unused CommitOptions. 2012-01-31 08:13:34 -05:00
Matt Burke c0b98b0fe5 Convert Rcheckin to NDesk.Options. 2012-01-31 08:11:45 -05:00
Matt Burke baae5b3746 Convert QuickFetch/QuickClone to NDesk.Options. 2012-01-31 08:07:19 -05:00
Matt Burke fc5536f70c Convert Pull to NDesk.Options. 2012-01-31 08:01:03 -05:00
Matt Burke 09d43bb417 Remove some using CommandLine.OptParse;
I'm doing this to ensure that I don't miss anything that needs to be
converted to NDesk.Options.
2012-01-31 07:59:13 -05:00
Matt Burke 3395468894 Convert Init to NDesk.Options. 2012-01-31 07:58:42 -05:00
Matt Burke c16fba1185 Rename mono git-tfs runner.
This should make it obvious that it's intended for use with mono.
2012-01-30 08:21:20 -05:00
Matt Burke 37b71b4d05 Converted Fetch to NDesk.Options. 2012-01-30 07:53:57 -05:00
Matt Burke 817df46a0d Convert Clone to NDesk.Options. 2012-01-30 07:40:45 -05:00
Matt Burke dcd6dc64c2 Convert Cleanup to use NDesk.Options. 2012-01-29 06:31:37 -05:00
Matt Burke af44684ea3 Convert CheckinOptions to NDesk.Options. 2012-01-29 06:25:57 -05:00
Matt Burke 5a4685159f Make it easier to pull the plug on CSharpOptParse. 2012-01-28 16:10:37 -05:00
Matt Burke f0e0c28486 Use NDeskOptions for RemoteOptions. 2012-01-28 13:37:54 -05:00
Matt Burke 157676c473 Rough-in NDesk.Options. 2012-01-28 12:04:36 -05:00
Matt Burke 9299d2c69a dos2unix 2012-01-28 11:42:04 -05:00
Matt Burke 36c7189560 Add NDesk.Options 0.2.1. 2012-01-28 11:38:30 -05:00
Matt Burke 34d5831f84 mono git-tfs.exe works! 2012-01-28 11:21:50 -05:00
Matt Burke 6e3cf85a3b Added a 'fake' TFS backend.
Hopefully, this will make it easier to dev on mono on my mac.
2012-01-28 10:55:38 -05:00
Matt Burke dcb943b46b Merge pull request #115 from adamrofer/consider-case
Fixes #104: Case sensitivity was off by default
2012-01-26 08:53:36 -08:00
Matt Burke 118db54ffc Fix wiki link. 2011-12-22 07:40:21 -05:00
ivan-danilov fee92600ca Merge pull request #122 from johnedmonds/redirected_stdout
Only close stdout if it has been redirected.
2011-12-18 21:00:24 -08:00
unknown cd4babc00f Only close stdout if it has been redirected.
git-tfs will crash if it attempts to close stdout from a process from
which stdout has not been redirected.  This adds a guard against closing
process's stdout that has not been redirected.
2011-12-18 23:13:07 -05:00
ivan-danilov 8e90acd333 Added closing of stdout for child processes preventing the hang in some cases (fixes #121).
Also removed close in another place as it is redundant now.
2011-12-17 18:52:54 +02:00
Matt Burke 6f0f0671b2 Merge pull request #120 from sc68cal/deprecation_fix
Fix deprecation warnings
2011-12-13 18:28:01 -08:00
ivan-danilov 3aa2904a4a Partly fixed problem with non-ascii encoding in the TFS repository path
The problem is that this value is written to .git\config which is done via git config command. And it uses system default encoding to write values. So the support was extended to system default encoding which is somewhat fragile (git-tfs will be broken if system default encoding changed).

More general approach is to encode this value in base-64 before saving to git config. It will make config file unreadable but will be robust. Further, all legitimate TFS paths start with $ char which can't appear in base-64 encoded string, so we can use it. If we have pure ASCII value - write it as it is, otherwise, encode it into base-64. When reading value check first byte. If it is ASCII code of '$' - read value normally, otherwise decode it before use. I'll leave it for TODO list for now.
2011-12-13 00:30:34 +02:00
Sean M. Collins e013fabdf6 Fix deprecation warnings
Replace calls that used the deprecated AuthenticatedUser property, to use the abstract method GetAuthenticatedUser()
that is implemented by the VS2008 and VS2010 TFSHelper classes.

More Info:
http://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.authenticateduser.aspx
2011-12-12 14:54:55 -05:00
ivan-danilov f604a20287 Added '--quick' option to rcheckin to omit rebases (some code cleanup needed) 2011-12-08 09:52:43 +02:00
Adam Rofer 1fe532edfa Fixes #104: Case sensitivity was off by default 2011-12-06 19:02:13 -08:00
ivan-danilov 194ca12141 Fixed problem with UTF8 byte-order mark at the beginning of commit messages 2011-12-06 11:45:10 +02:00
ivan-danilov 1c2887041a Merge pull request #102 from royx/master
Fixed #101 (incorrect encoding of commit messages)
2011-11-23 16:32:33 -08:00
ivan-danilov 3ba185ab0c Merge pull request #108 from LarsAndreasEk/ImprovedDiagnostics
Improved diagnostics for errors during file download
2011-11-23 15:53:48 -08:00