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.3.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pgdf-0.0.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pgdf-0.0.3.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pgdf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a659cbf72f49f8d4022008d9afd0435924ff37406f08b028132317e97f8a0c10
MD5 2026e47e4e14ed07fd37714be76a212b
BLAKE2b-256 14cf7df07398e28a81bc6c18f6d5759257da108062a93bda89b5b924d00faf4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgdf-0.0.3.tar.gz:

Publisher: workflow.yml on KenjiOhtsuka/pgdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgdf-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pgdf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pgdf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6ed769c0e4f3cc1b3a885ab5f177d82847848368af1c9bfafbd9de1ebabf001
MD5 4b5b9ccb343f777c9700b4a06916ffdb
BLAKE2b-256 aa5cc6aea09cb577a381a52fee7f534814a7b6480be1d32c881884d4cc3752ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgdf-0.0.3-py3-none-any.whl:

Publisher: workflow.yml on KenjiOhtsuka/pgdf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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