Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:52:49+00:00 2026-06-13T13:52:49+00:00

In git, I can do git commit –verbose to show me a diff right

  • 0

In git, I can do “git commit –verbose” to show me a diff right there in the message editor. I don’t see any option for it in mercurial. Is there a mercurial plugin to show me a diff in the message editor or anything similar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:52:50+00:00Added an answer on June 13, 2026 at 1:52 pm

    Short answer: There is no git commit --verbose equivalent in mercurial, but it’s possible to hack it in.

    The edit text is hard-coded in the mercurial source, so no plugin or configuration can directly change it.

    The best you can do is to hack the ui.editor setting in your hgrc to add text into the editor directly. I made a script called hg-commit-editor:

    #!/bin/sh
    echo 'HG: ------------------------ >8 ------------------------' >> $1
    hg diff >> $1
    editor $1
    exit $?
    

    and then set it as my commit editor in my hgrc:

    [ui]
    editor = hg-commit-editor
    

    This appends the output of “hg diff” to the bottom of the edit text file after a special line (source) so it’s not included as part of the commit message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that I can use git commit --amend --file=path-to-my-new-message but this will amend
How can I query git to find out which branches contain a given commit?
When I run git rm I can see that files were removed in git
Possible Duplicate: How can I commit only part of a file in git I
Sometimes Git can be rather tedious if there are many similar filenames. For instance:
Using TortiseSVN you can update/commit a single directory by right clicking the directory and
Possible Duplicate: Show the original branch for a commit git version 1.7.4.1 I have
Can git commit empty versions of some files? The case in point is that
I have a Git repository. I have cloned the repository and can commit my
Possible Duplicate: git: can i commit a file and ignore the content changes? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.