24 lines
653 B
C#
24 lines
653 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 long DoCheckin(TfsChangesetInfo changeset, string refToCheckin)
|
|
{
|
|
return changeset.Remote.Checkin(refToCheckin, changeset, _checkinOptions);
|
|
}
|
|
}
|
|
}
|