# Edit a rollback's edit reason?

I rolled back an edit that a user made to another's code.

It may not be immediately apparent to the most casual observer why I rolled back this edit, but the summary just says

Rollback to revision N

To change it, I clicked edit, to make it to the effect of "please don't edit others' code", but upon clicking Save edits the edit reason did not update, even though the post changed to say edited 1 minute ago by cat.

Can I change a rollback's edit reason, and if so, how?

• I'm not certain, but I believe you did this correctly: you should roll back and then leave a comment to the editor. I don't think many users who don't know not to edit code will look at edit histories, so I think this only will be a problem with other SE vets who don't know about this particular quirk. I don't think that's enough of a problem to warrant a change. – FryAmTheEggman Jul 11 '16 at 0:38
• @FryAmTheEggman So the answer is, "no, you can't edit the reason after the fact, just leave a comment"? – cat Jul 11 '16 at 0:40
• It's just a guess, if I knew for sure I would have answered :P The rest of my comment was more directed at a potential follow-up, rather than this question. – FryAmTheEggman Jul 11 '16 at 0:43

## 1 Answer

Only moderators can edit revision history comments, including the comment for a rollback.

If you'd like to rollback with a custom comment, go into the revision history of the post and use the edit link on a specific revision:

This will bring you to the standard edit page (in which you can enter a custom comment), but containing the contents of the revision you chose instead of the current revision—so if you make no further changes, you are effectively performing a rollback.

If you've already made an edit and you want to add an important piece of information, you can do so in the comments. You may want to leave the message both in the revision history and as a comment if you think it's important that the user whose post you're editing sees your comment.

(As an aside, the moderator revision history editing tool is meant mostly for redacting offensive or sensitive information. You can use a custom moderator flag in that case, but for this situation, it'd be better to just leave a comment.)

• Thanks! As an aside, what do you use for dark mode? :P – cat Jul 11 '16 at 1:13
• @cat It's a userstyle I wrote (still WIP, but fairly comprehensive). (Whoops, I forgot it would show up in the screenshot. :P) – Doorknob Jul 11 '16 at 1:16