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.5.tar.gz (9.6 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.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pgdf-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1dc1a91e6c06272ee939d5586848dcf7b7d544dd4c0b58226ec7a39c28dee17e
MD5 0d964e045a1afcb60fb8caad1df4d7e3
BLAKE2b-256 c93eda0caa16915f6f10725ffabbcdf38f0cddb5bfd0dd70d01f4d0f77175edc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgdf-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: pgdf-0.0.5-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.14

File hashes

Hashes for pgdf-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8b132c73cfa734a2779066287dd1afe1928cd9ad8e17eb55cbc186da2c529b08
MD5 9ddfda20dc8f06a9b5f6188a2303ae2c
BLAKE2b-256 9d47d21b98f1f51efdc8c07a50ca133ed5f74123a16995b7a0d1e32a85053360

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgdf-0.0.5-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