Skip to main content

Tool built with python to summarize git diff into an Excel file.

Project description

Tool built with python to summarize git diff.

Motivation

This tool can put diffs into Excel.

Installation

This tool is installed with pip:

$ pip install pgdf

Usage

Go to the Git repository directory, then:

$ pgdf 09c03f56 93496ef3
$ pgdf 09c03f56 93496ef3 dir/path file/path
$ pgdf origin/main feature/something

It generates an Excel file that contains summary of the differences.

Excel Format

The output excel file contains two sheets, Summary and Diff.

Summary

The summary sheet contains the summary of the differences. It is same as the result of git diff --stats for the specified commits.

Diff

The diff sheet contains the differences of the markdown files. It is something like git diff for the specified commits, but it also contains line numbers and commit short logs as follows.

Diff 29485862 4959956a

diff –git a/file_a.txt b/file_a.txt

index 29485862..4959956a 100644

— a/file_a.txt

+++ b/file_a.txt

@@ -1,3 +1,3 @@

33

33

text 1

34

34

text 2

29485862

User 1

2024-01-01 …

old comment

35

- old text 3

4959956a

User 2

2024-01-01 …

new comment

35

+ new text 3

36

36

text 4

37

37

text 5

PyPI package

https://pypi.org/project/pgdf/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pgdf-0.0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file pgdf-0.0.1.0.tar.gz.

File metadata

  • Download URL: pgdf-0.0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for pgdf-0.0.1.0.tar.gz
Algorithm Hash digest
SHA256 3c8c964e9b0053b4fc09b1d5ec836f500f72da737ba5b141972d0bb44c2ea1d5
MD5 717269e2451d2b94c43eebe48ba72d56
BLAKE2b-256 b59b0cc753c23c8e0e601f13512fc3ab0682c80e7f6e2c63eb9510c0fb9f60d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page