The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Warn before commit code with special keyword

Marcin Pilarski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2019

is there a way to setup Sourcetree so that it will warn me if i'll try to commit/stage code with special, custom keyword like NOCOMMIT?

Code example:

//...

var someVar = 1; // NOCOMMIT

//...

if I try to commit this code fragment, I would like to get warn in Sourcetree - "Hey do you really want to commit this change?"

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events