Files
git-tfs/GitTfs/Commands/Checkin.cs
Philippe Miossec 22fc8f91c0 refacto: use 'int' to handle changeset Ids
instead of 'long' to match what is done in the tfs api
2015-11-16 01:11:44 +01:00

24 lines
652 B
C#

using System.ComponentModel;
using System.IO;
using Sep.Git.Tfs.Core;
using StructureMap;
namespace Sep.Git.Tfs.Commands
{
[Pluggable("checkin")]
[Description("checkin [options] [ref-to-shelve]")]
[RequiresValidGitRepository]
public class Checkin : CheckinBase
{
public Checkin(TextWriter stdout, CheckinOptions checkinOptions, TfsWriter writer)
: base(stdout, checkinOptions, writer)
{
}
protected override int DoCheckin(TfsChangesetInfo changeset, string refToCheckin)
{
return changeset.Remote.Checkin(refToCheckin, changeset, _checkinOptions);
}
}
}