Initialize and update Changelists information.
Project description
Changelist-Init
Manage your Git File and Commit Message Workflows with Changelists!
Introduction
Changelist-Init is the package that gets your changelists ready to go!
- Sync changelists with git.
- Creates new changelists data file if necessary.
About
Changelist-Init is a command-line tool (CLI) in an ecosystem of Changelist CLI tools. It plays the role of adding file changes from git into the project changelist data file.
The related packages sort
and foci
serve other changelist management functions by reading, and writing to, the project changelist data file.
Related Packages
The package changelist-sort
is for organizing the files in your Changelists.
- Sorts files into Changelists by directory
The package changelist-foci
(File Oriented Commit Information) prints a commit message template for your Changelists.
- Various File Name and Path formatting options
Package Details
Changelist Init
The root package init module provides high level methods:
initialize_file_changes() -> list[FileChange]
: Get updated FileChange information from Git.merge_file_changes() -> bool
: Merge updated FileChange information into Changelists.
Input Package
Using the High-Level package method validate_input
, converts program arguments into InputData
object.
Parsing and Validation are handled by internal package modules.
Data Classes
Argument Data:
- changelists_file: The string path to the Changelists Data File.
- workspace_file: The string path to the Workspace File.
- include_untracked: Whether to include untracked files.
Input Data:
- storage: The ChangelistData Storage object.
- include_untracked: Whether untracked files are added to changelists. false by default.
Internal Modules
Argument Parser String Validation
Git Package
Use the get_status_lists()
method to obtain updated file information from git.
Data Classes
Git File Status:
get_tracking_status()
Git Status Lists: A Collection of Data processed from Git Status operation.
get_list(GitTrackingStatus) -> list[GitFileStatus]
add_file_status(GitFileStatus)
Enum Class
Git Tracking Status:
- UNTRACKED
- UNSTAGED
- STAGED
- PARTIAL_STAGE
Internal Modules
Status Runner:
run_git_status() -> str
: Runs a Git Status short operation, returns the stdout.
Status Reader:
read_git_status_output(str) -> GitStatusLists
: Read Git Status short stdout.read_git_status_line(str) -> GitFileStatus | None
: Read a single line of Git Status short.
Status Codes:
get_status_code_change_map(str) -> Callable[]
: Construct a FileChange map function for a Git Status code.
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 changelist_init-0.1.tar.gz
.
File metadata
- Download URL: changelist_init-0.1.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62909d0af4220523f945bd29bd0cab41708bb389801c69dab54e456ca42950ad |
|
MD5 | c9f955c21dabf57671a10b2f7a97137f |
|
BLAKE2b-256 | aa225420395a9d73de47295f2fec486f3fd23277d27ae3b6e065d49c6b0211a0 |
Provenance
The following attestation bundles were made for changelist_init-0.1.tar.gz
:
Publisher:
publish.yml
on DK96-OS/changelist-init
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
changelist_init-0.1.tar.gz
- Subject digest:
62909d0af4220523f945bd29bd0cab41708bb389801c69dab54e456ca42950ad
- Sigstore transparency entry: 148815445
- Sigstore integration time:
- Predicate type:
File details
Details for the file changelist_init-0.1-py3-none-any.whl
.
File metadata
- Download URL: changelist_init-0.1-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045b3a59afc0e10660b3b15b39e9737d4833dd440607c8e1ebb3c6237fe47f99 |
|
MD5 | 04d0cfe92581f62b240d2212465f1659 |
|
BLAKE2b-256 | 2c2682a3154a2994b4c4d5b3c3b9741b18fa6a53ec78661562e435b2fa46986f |
Provenance
The following attestation bundles were made for changelist_init-0.1-py3-none-any.whl
:
Publisher:
publish.yml
on DK96-OS/changelist-init
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
changelist_init-0.1-py3-none-any.whl
- Subject digest:
045b3a59afc0e10660b3b15b39e9737d4833dd440607c8e1ebb3c6237fe47f99
- Sigstore transparency entry: 148815448
- Sigstore integration time:
- Predicate type: