SetCommitComment() static private method

static private SetCommitComment ( string file, string comment, bool save ) : void
file string
comment string
save bool
return void
コード例 #1
0
		public static bool Revert (VersionControlItemList items, bool test)
		{
			if (RevertInternal (items, test)) {
				foreach (var itemPath in items.Paths)
					VersionControlService.SetCommitComment (itemPath, string.Empty, true);
				return true;
			}
			return false;
		}
コード例 #2
0
ファイル: RevertCommand.cs プロジェクト: noah1510/dotdevelop
 public static async Task <bool> RevertAsync(VersionControlItemList items, bool test, CancellationToken cancellationToken)
 {
     if (await RevertInternalAsync(items, test, cancellationToken))
     {
         foreach (var itemPath in items.Paths)
         {
             VersionControlService.SetCommitComment(itemPath, string.Empty, true);
         }
         return(true);
     }
     return(false);
 }
コード例 #3
0
            protected override void Run()
            {
                success = true;
                try {
                    // store global comment before commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, changeSet.GlobalComment, true);

                    vc.Commit(changeSet, Monitor);
                    Monitor.ReportSuccess(GettextCatalog.GetString("Commit operation completed."));

                    // Reset the global comment on successful commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, "", true);
                } catch {
                    success = false;
                    throw;
                }
            }
コード例 #4
0
            protected override async Task RunAsync()
            {
                success = true;
                try {
                    // store global comment before commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, changeSet.GlobalComment, true);

                    await vc.CommitAsync(changeSet, Monitor);

                    Monitor.ReportSuccess(GettextCatalog.GetString("Commit operation completed."));

                    // Reset the global comment on successful commit.
                    VersionControlService.SetCommitComment(changeSet.BaseLocalPath, "", true);
                } catch (Exception ex) {
                    LoggingService.LogError("Commit operation failed", ex);
                    Monitor.ReportError(ex.Message, null);
                    success = false;
                    throw;
                }
            }