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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:11:22+00:00 2026-06-16T01:11:22+00:00

I’ve been saving some automatically-generated performance data for my code in perf.txt. Every time

  • 0

I’ve been saving some automatically-generated performance data for my code in perf.txt. Every time I improve my code, I run a script that overwrites perf.txt with the new performance data. I’ll then commit perf.txt.

In retrospect, overwriting perf.txt was a bone-headed mistake, and now, I’d like to make some analysis/plot a graph of my improvement, but can’t. Of course, the old perf.txt files are still out there in my commit history. Is there any easy way to get them? Ideally I’d like to have perf~1.txt, perf~2.txt, etc. in a new directory, along with time stamps.

Alternatively, if I could simply “replay” the commit history (e.g. git next perf.txt) like git-bisect does – but linearly – that would work too.

  • 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-16T01:11:23+00:00Added an answer on June 16, 2026 at 1:11 am

    Ok, I managed to create a shell script for this. Let me know if it works fine.

    Update:

    i=0; git rev-list HEAD package.json | while read sha1; do; git show "$sha1:package.json" > "$(printf "%04d" $i)-$sha1-package.json"; ((i++)); done
    

    Will output:

    $ ls *-package.json | cat
    0000-a15147199edff1b1c0fab89c66214abfb8c65d7c-package.json
    0001-51feba61197b837b7d55754a56e12f66f0624ba1-package.json
    0002-ed9e34482a303e7e64c397f89533dbe64f51cfbf-package.json
    0003-d01253e20158f53c08aa6bc0c1cf66806cd19148-package.json
    0004-d57363e800535a7400fde56e97d0a4cd424cffbb-package.json
    0005-6e995583a11b63bf1d94142da6408955ee93e7cc-package.json
    0006-6bc2a87943f59ad277cdee26aec1c25949c0f091-package.json
    0007-e06a8cae3a1de58b770a66cbd124cf50e809fb31-package.json
    0008-81bf63359641255dfd340714d0635be03bda8de9-package.json
    0009-95559f5117c8a21c1b8cc99f4badc320fd3dcbda-package.json
    0010-5e906366dd86dda95df050257513c95834020e5e-package.json
    0011-717cb2a5c7909ed16f7c599b02759b27fd2e4258-package.json
    0012-f18b75940e61a52ef9c0cf41a4bda3bcdae5c46c-package.json
    0013-3c86547a3b841807c4744af0fa4ee3894cc17a33-package.json
    0014-d5658e978d9a7234e537d57c45069ce223cb3853-package.json
    0015-286c4d91dde12ba32f4a56273d05374b1cbb79e7-package.json
    0016-46d680458b74fcf956f6161a2b73b6b00fc2541d-package.json
    0017-e64f89d9aaf26c2dae6c7f1ef29a2d3cadd0b4b2-package.json
    0018-bd84aad6cdde8cf3ce7842df1febb82fe9816647-package.json
    0019-6cf1542a8b823c6bdacf7e6e01dfcb58e9949ff4-package.json
    0020-1434b5b56756d02190afe552b626823c97b11a49-package.json
    

    Which will remain in correct order when sorted.


    Original:

    i=0; git rev-list HEAD package.json | while read sha1; do; git show "$sha1:package.json" > "$i-$sha1-package.json"; ((i++)); done
    

    Replace package.json with the file you want in all the 3 places.

    This will create files like this:

    $ ls *-package.json | cat
    0-a15147199edff1b1c0fab89c66214abfb8c65d7c-package.json
    1-51feba61197b837b7d55754a56e12f66f0624ba1-package.json
    10-5e906366dd86dda95df050257513c95834020e5e-package.json
    11-717cb2a5c7909ed16f7c599b02759b27fd2e4258-package.json
    12-f18b75940e61a52ef9c0cf41a4bda3bcdae5c46c-package.json
    13-3c86547a3b841807c4744af0fa4ee3894cc17a33-package.json
    14-d5658e978d9a7234e537d57c45069ce223cb3853-package.json
    15-286c4d91dde12ba32f4a56273d05374b1cbb79e7-package.json
    16-46d680458b74fcf956f6161a2b73b6b00fc2541d-package.json
    17-e64f89d9aaf26c2dae6c7f1ef29a2d3cadd0b4b2-package.json
    18-bd84aad6cdde8cf3ce7842df1febb82fe9816647-package.json
    19-6cf1542a8b823c6bdacf7e6e01dfcb58e9949ff4-package.json
    2-ed9e34482a303e7e64c397f89533dbe64f51cfbf-package.json
    20-1434b5b56756d02190afe552b626823c97b11a49-package.json
    3-d01253e20158f53c08aa6bc0c1cf66806cd19148-package.json
    4-d57363e800535a7400fde56e97d0a4cd424cffbb-package.json
    5-6e995583a11b63bf1d94142da6408955ee93e7cc-package.json
    6-6bc2a87943f59ad277cdee26aec1c25949c0f091-package.json
    7-e06a8cae3a1de58b770a66cbd124cf50e809fb31-package.json
    8-81bf63359641255dfd340714d0635be03bda8de9-package.json
    9-95559f5117c8a21c1b8cc99f4badc320fd3dcbda-package.json
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I would like to run a str_replace or preg_replace which looks for certain words
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have been unable to fix a problem with Java Unicode and encoding. The
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

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.