Davin Tryon
Davin Tryon

Reputation: 67326

Appending comments in checkintool

Recently, I've switched to using git-tfs so that TFS isn't a nightmare to work with. :) However, I've noticed an annoying detail that I can't seem to track down searching around in the docs and on the web.

The issue is with comments when using git tfs checkintool. When the Visual Studio Check-in dialogue box appears, all my past commit comments appear appended to the current comment.

I then have to delete all but the last comment before check-in.

This might be due to the fact that I'm using TFS gated check-ins, however, I'm not sure. When using gated check-ins the check-in never commits to the server. I just get back Checkin cancelled!. Then, once the gated build has passed, I do a git tfs pull to merge everything together.

Has anyone else seen this? What is the best action to clear the comment trail?

MORE INFO:

This indeed does have to do with the TFS gated checkin. When the gated checkin was turned off, and I made a single checkin, the comments cleared.

So, I think the same behavior should be able to be seen if many checkins are canceled and I do many git tfs pull requests over time. I think the local master branch never fully registers a push to the server.

What would be a way to indicate this to git locally?

Upvotes: 4

Views: 154

Answers (1)

Anders
Anders

Reputation: 545

Not sure I fully understand your workflow, but have you tried using the flag "--no-build-default-comment" with checkintool? By default checkintool concatenates all the comments since the last time it thinks it was in sync with tfs, but this flag overrides this behaviour, leaving you with an empty dialog.

Upvotes: 1

Related Questions