Coder Social home page Coder Social logo

libreoffice-repaired's Introduction

Repaired Libreoffice Repository

Bad commit objects have been fixed by rewriting (git filter-repo --force).

Bad commit metadata caused weird git-log(1) behavior.

This forcibly rewritten repository is just a reference in order to demonstrate that git-log(1) works as long as the commit objects are sound (not bad). So there is no bug in git-log(1).

Context

See email thread “Weird behavior of 'git log --before'” on the Git mailing list.

This was provided for reproduction:

# (Note by me: might wanna use HTTPS instead)
git clone [email protected]:LibreOffice/core.git libreoffice
cd libreoffice
git log --no-merges --before="1980-01-01T00:00:00+0000" --format=%H,%ct,%ci,%ad

And indeed this works as a way to reproduce the weird behavior.

But this behavior can no longer be reproduced on this repository, where the bad commits have been fixed.

Proof:

git clone https://github.com/LemmingAvalanche/libreoffice-repaired
cd libreoffice-repaired
git log --no-merges --before="1980-01-01T00:00:00+0000" --format=%H,%ct,%ci,%ad

The git log invocation should give no output (the repository does not go back to the 1980’s).

Bad commits: output from git fsck --strict

Example of commits in the original repo that seem to foil git-log(1):

error in commit 08b6b244b215ec4a96686866685eab5421da3dd5: missingSpaceBeforeEmail: invalid author/committer line - missing space before email
error in commit 3da23a64509eb47f9bf56c65611d11a64b89583b: missingSpaceBeforeDate: invalid author/committer line - missing space before date

Repaired metadata

These were changed because they were completely mangled:

andre.f.fischer <Andre Fischer<[email protected] → Andre Fischer <[email protected]>
Andre.W.Fischer <Andre Fischer<[email protected] → Andre Fischer <[email protected]>
gh <Gregor Hartmann<[email protected] → Gregor Hartmann <[email protected]>
Joerg Skottke [jsk] [email protected] → Joerg Skottke <[email protected]>

And that was enough to make git-log(1) stop being weird.

libreoffice-repaired's People

Contributors

stbergmann avatar mmohrhard avatar erack avatar serval2412 avatar dtardon avatar gelma avatar tml1024 avatar kendy avatar mikekaganski avatar quikee avatar vmiklos avatar tarnhold avatar nthiebaud avatar grandinj avatar bjoernmichaelsen avatar kohei-us avatar tabe avatar chrissherlock avatar fridrich avatar andreas-kainz avatar tzolnai avatar smehrbrodt avatar eszkadev avatar archeon avatar jmglogow avatar mmeeks avatar cloph avatar joey3000 avatar pmladek avatar timar avatar

Watchers

Kristoffer Haugsbakk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.