Skip to content

corytodd/walrust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Walrust

Rust

Walrust is a command-line tool designed to query commit data from multiple Git repositories simultaneously. It simplifies the process of gathering and analyzing commit history, making it easier for developers and teams to track changes across their projects.

This is a port of my Walrus C# project, mostly just for fun.

Features

  • Query commit history across multiple Git repositories.
  • Filter commits by date range, author, or repository depth.

Installation

To install Walrust, you need to have Rust installed on your system.

git clone https://github.com/corytodd/walrust.git
cd walrust
cargo build --release

The compiled binary will be available in the release directory.

Usage

Walrust provides a simple command-line interface for querying commit data. Below are some examples of how to use it:

Query Repositories in a Directory

walrust -r /path/to/search -d 3

This command searches for Git repositories in /path/to/search up to a depth of 3 and retrieves commit data.

Filter Commits by Date Range

walrust -r /path/to/search -d 3 --since 2025-01-01 --until 2025-12-31

This command retrieves commits made between January 1, 2025, and December 31, 2025.

Filter Commits by Author

walrust -r /path/to/search -d 3 --author "Bix Andor <bix@radioshack.com>"

This command retrieves commits authored by "Bix Andor" in the specified repositories.

Configuration

Walrust uses the following command-line options:

-r, --search-root: The root directory to start searching for repositories.
-d, --search-depth: The maximum recursion depth for directory scanning.
-s, --since: The starting date to filter commits, inclusive in format YYYY-MM-DD.
-u, --until: The ending date to filter commits, inclusive in format YYYY-MM-DD.
-a, --author: The author name to filter commits by in "Name <email>" format.

--help for a full list of options.

Development

Running Tests

cargo test

Contributing

Contributions are welcome! If you'd like to contribute to Walrust, please fork the repository and submit a pull request. Make sure to follow the coding standards and include tests for any new features.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Walrus in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages