<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>245255</bug_id>
          
          <creation_ts>2022-09-15 16:36:17 -0700</creation_ts>
          <short_desc>[git-webkit] prepare-commit-msg does not work with --reedit-message and --reuse-message</short_desc>
          <delta_ts>2023-05-15 14:14:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>239082</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Elliott Williams">emw</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1898857</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-09-15 16:36:17 -0700</bug_when>
    <thetext>These git-commit options allow you to use the commit message from a different commit, and optionally stop for editing. They allow you to &quot;rewrite&quot; a commit by resetting to `main`, staging new changes, then running `git commit --reedit-message &quot;HEAD@{1}&quot;` to make changes to the old commit message.

Our prepare-commit-msg hook completely overwrites the commit message staged by these options, making them unusable. It should preserve the original message, and only list modified files in the comment section below the message body.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900495</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-22 16:37:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/100300158&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1955492</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-05-15 14:14:18 -0700</bug_when>
    <thetext>This looks like it was fixed by Bug 255121, except when I just tried to do this I got:

gsnedders@gsnedders-marsha webkitpy % git commit -c b318aede1356
  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.
  Extracting affected function names from source files.
  Change author: Sam Sneddon &lt;gsnedders@apple.com&gt;.
  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.
  Extracting affected function names from source files.
  Change author: Abrar Rahman Protyasha &lt;a_protyasha@apple.com&gt;.

And it displayed the author and commit message of `main` rather than of `b318aede1356`.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>