Back to browse
GitHub Repository

Peru's 1993 Constitution as a Git history — git blame shows which law changed each line

5 starsPython

I modeled Peru's 1993 Constitution as a Git history

by Duvet05·May 3, 2026·2 points·0 comments

AI Analysis

●●●BangerBig BrainZero to OneNiche Gem

Git blame reveals which law changed each constitutional line since 1993.

Strengths
  • Court rulings appear as revert commits when laws are struck down—elegant mapping.
  • 36 amendments reconstructed with real promulgation dates and official sources.
  • Build scripts and manifest enable auditable reconstruction of the full history.
Weaknesses
  • 1993 original text reconstructed from 2013 checkpoint, not direct OCR transcription.
  • Niche audience limits broader developer appeal despite technical cleverness.
Category
Target Audience

Legal researchers, historians, and civics educators

Post Description

The 1993 Peruvian Constitution has been amended 36 times. Those amendments are normally buried in PDFs and official gazettes.

This repo treats each reform as a Git commit with the real promulgation date, so git blame constitucion.md shows the exact law that introduced or changed each line.

A few things that came out interesting: - Three laws from 2021 (31280, 31304, 31305) were struck down by the Constitutional Court. They show zero lines in blame — the court ruling appears as a revert commit. - Alberto Fujimori's signature was removed from the constitution in 2000 by Law 27600. Law 32265 (March 2025) restored it. git blame attributes lines 1–4 to that 2025 law. - The right to water (Art. 7-A) is attributed to Law 30588, 2017. The right to free internet (Art. 14-A) to Law 31878, 2023.

The reconstructed public history branch is here: git clone --branch history https://github.com/Duvet05/Constitucion-Politica-del-Peru.gi...

Similar Projects