-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --email option to export command for email-style patch formatting #981
base: main
Are you sure you want to change the base?
Conversation
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@VishalGawade1 has updated the pull request. You must reimport the pull request before landing. |
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Are you sure you didn't commit stuff by mistake? There's 1862 changed files but the functional change is only in one of them. |
@VishalGawade1 has updated the pull request. You must reimport the pull request before landing. |
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Ahh, Apologies for the oversight; I'm not sure how the |
@VishalGawade1 has updated the pull request. You must reimport the pull request before landing. |
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There was a Mercurial "patchbomb" extension: https://wiki.mercurial-scm.org/PatchbombExtension We deleted it since it has no internal use-cases but it can be re-added. If we backport the code, we can maintain a command-line UI familiar to Mercurial users. What do you think? |
Really sorry for being little inactive. Re-adding the 'patchbomb' extension sounds like a good to me. It would provide the email functionality in a way that's familiar to Mercurial users. |
Summary of Changes:
Fixes #318
New Flag: Adds the --email flag to format output with email headers.
Email Headers: Generates headers like From, Date, Subject, and Message-Id for each patch to create an email-style format.
Commit Message and Diff: Includes the full commit message, followed by diffstat and the full diff for each revision.
Default Behavior: If --email is not specified, the command falls back to its standard export functionality without email formatting.