Coder Social home page Coder Social logo

Comments (2)

eMaringolo avatar eMaringolo commented on May 29, 2024

We discussed this in a meeting with Mariano, and what we want is an option to load a base edition of an Application/Subapplication that is closer to what was versioned instead of using the latest one.

E.g. You're loading YourApplication from Tonel sources in a git repository, and the git HEAD is at the cf1234ab commit hash, and its parent commit is e2394a92, then when looking for a base edition to load, we look for one that matches such commit hash (by means of a pattern, text-search, etc.), so we find YourApplication master-e2394a92 edition and load that instead of the "latest one" (which in some cases might be the same one).

from tonel-vast.

eMaringolo avatar eMaringolo commented on May 29, 2024

After looking and reading about the internals of git, there is no simple way to extract the parent commits of a particular commit other than to parse directly the binary files in .git/objects/, in some cases requiring to parse the packfiles.

We would need to extract the commit by calling a git command on the git repository.

So:

$ git cat-file commit HEAD
tree 47b9dc8f9e2cc5da2c09aebf79731e6f35fa7d85
parent c3b72568c09808a298280800c38ba14e0a1c8414
author Esteban A. Maringolo  1577745693 -0300

from tonel-vast.

Related Issues (20)

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.