Skip to content

Instantly share code, notes, and snippets.

View leonidessaguisagjr's full-sized avatar

Leonides T. Saguisag, Jr. leonidessaguisagjr

View GitHub Profile
@leonidessaguisagjr
leonidessaguisagjr / py-git-cat-file.py
Last active July 30, 2023 06:46
Studying git internals: implement `git cat-file` in Python
#!/usr/bin/env python3
"""Implementation of git cat-file in Python.
This Gist is published under the MIT License:
MIT License
Copyright (c) 2019 Leonides T. Saguisag, Jr.
Permission is hereby granted, free of charge, to any person obtaining a copy