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 8091557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:05:32+00:00 2026-06-05T20:05:32+00:00

A follow-up question to my answer about editing GitHub pull-requests asked whether editing the

  • 0

A follow-up question to my answer about editing GitHub pull-requests asked whether editing the patch file directly before applying it would result in taking credit for the original author’s work. Since it wasn’t really part of the original question, I’m asking it here as a new question.

  • 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-05T20:05:33+00:00Added an answer on June 5, 2026 at 8:05 pm

    TL;DR

    Git will attribute authorship to the creator of the patch and not the current committer. However, you can override this behavior,

    How Git Handles Patches in Mailbox Files

    The git am command processes a series of patches stored in a mailbox. In the case of GitHub pull-requests, each patch file is just a series of diffs stored in mbox format. Git parses the From lines in the mailbox to determine the values for GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL for each commit.

    What This Means

    Even if you hand-edit the individual diff hunks, Git will normally treat Bob as the author and you as the committer. This is generally The Right Thing™.

    However, while it’s certainly bad karma, from a technical perspective you could conceivably edit Bob out of the commit altogether. After all, it’s just a text file that you can munge to suit yourself, and if you change the From lines in the mailbox then Git will use the new values to populate its author fields when it applies each patch.

    There are certainly moral and legal implications to doing this, but the question was about attribution. Git attributes authorship properly by default, but control is ultimately yours.

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

Sidebar

Related Questions

This is a follow up question to a previous question I asked about calculating
I saw this question asked about C# I would like an answer for PHP.
I have been trying to follow the instructions in the answer to this question
This question is a follow-up of the post at Ada file operation: instantiation and
Recently I asked a question about how to use ajax calls to authenticate user
I wanted to follow up on a question I previously asked which I'm still
I realize this question is very likely to have been asked before, but I've
This is a follow-up to a previous question I had about interfaces. I received
This is a follow up to my previous question about using XMLHttpRequest() to post
Earlier today I asked a question about passing dictionary values to a function. While

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.