Note that there are some explanatory texts on larger screens.

plurals
  1. POGit: Remove commits which only changes a timestamp
    text
    copied!<p>I'm looking for a proper solution to remove only-timestamp-changes in the history of my repository .</p> <p>If you wonder what I'm doing here: I'm trying to build a git repository based on downloaded nightly zip archives of a piece of software where every day all files were timestamped with the date.. but weren't actually changed. In order to keep the actual changes, I want to get rid of these changes.</p> <p>I have already played with filter-branch to remove sub directories. Has someone an idea how to achieve this?</p> <p>Some additional points I have:</p> <ol> <li>I know that the change is always in a specific line (if I walk from top to bottom, I could remove a change of one file if only this line was touched?)</li> <li>The old and new timestamp is -- for one commit -- in all files the same. </li> <li>The line is globally unique, I'd say it's even timeless unique.</li> </ol> <p><strong>Appending</strong></p> <p><strong>Question 1: How do I know which files are actually changed?</strong></p> <p>Okay, I give two examples. The first one contains actually a change, the second one only the stamping.</p> <p>In my examples, the timestamp is always in line 5. My targets are to remove the one line changed in <em>commit A</em> and to eliminate <em>commit B</em>.</p> <p>Example Commit A (Before)</p> <pre><code>a file with a header a file with a header a file with a header /* Build date: 2013-24-05 11:01:01 (02129bb861061d1a052c592e2dc6b383) */ other stuff other stuff something before the change other stuff </code></pre> <p>Example Commit A (After)</p> <pre><code>a file with a header a file with a header a file with a header /* Build date: 2013-25-05 11:01:01 (57cec4137b614c87cb4e24a3d003a3e0) */ other stuff other stuff something after the change other stuff </code></pre> <p>Example Commit B (Before)</p> <pre><code>a file with a header a file with a header a file with a header /* Build date: 2013-24-05 11:01:01 (02129bb861061d1a052c592e2dc6b383) */ other stuff other stuff something which is not altered other stuff </code></pre> <p>Example Commit B (After)</p> <pre><code>a file with a header a file with a header a file with a header /* Build date: 2013-25-05 11:01:01 (57cec4137b614c87cb4e24a3d003a3e0) */ other stuff other stuff something which is not altered other stuff </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload