A Python package for analyzing git differences between branches in a local repository.
Project description
Beatrica Git
beatrica-git
is a Python package designed for analyzing git differences between branches in a local repository. It helps developers and project managers to easily track and visualize changes, fostering better understanding and collaboration within teams.
Installation
To install beatrica-git
, use pip:
pip install beatrica-git
Usage
beatrica-git
is straightforward to use. Below are examples demonstrating how to analyze and retrieve recent commit changes between branches.
Analyzing Commit Changes
from beatrica_git.recent_change_inspector import BeatricaDiffTracker
# Initialize the analyzer for a specific repository path (optional) and branch
beatrica_diff_tracker = BeatricaDiffTracker(base_branch='master')
# Perform the analysis
beatrica_diff_tracker.analyze_commits()
# Retrieve and print the commit changes
commit_changes = beatrica_diff_tracker.commit_changes
print(commit_changes)
This example shows how to instantiate the BeatricaDiffTracker
and analyze commit changes between the master
branch and the HEAD
. It's possible to specify a repository path; otherwise, the current working directory is used.
Features
- Easy retrieval and analysis of commit differences between two branches.
- Support for analyzing changes in local git repositories.
- Detailed breakdown of additions, deletions, and modifications in each commit.
- Customizable for different base and head branches.
- Simplified API for easy integration into development workflows and tools.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file beatrica-git-0.1.1.tar.gz
.
File metadata
- Download URL: beatrica-git-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa1b6d89be2b39a60d1c9667ec75d78d39ab0488f3cda28175d3d3b452d202f |
|
MD5 | c5e28da2c67b1a1c0f74ea0c22e959a9 |
|
BLAKE2b-256 | 06ed23400a6b97904194fbdeb8f23b8eed3f97db70c6dd973b8f9420be18c909 |
File details
Details for the file beatrica_git-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: beatrica_git-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72de94447fcc494f93ef3e44a12e54db11526796d4491585f63361f74940381 |
|
MD5 | cad704041fd584e147e4a258844418de |
|
BLAKE2b-256 | 14d0f6b94fd8d6164b16688aa7ae38dac32d249aabae2a365e5866f3390a653d |