File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99//! It is the plumbing library behind the `git filter-tree` command and the
1010//! [`git-rewrite`](https://docs.rs/git-rewrite) porcelain.
1111//!
12- //! # Filter by glob pattern
12+ //! # Filter by Pattern
1313//!
1414//! ```no_run
1515//! use git_filter_tree::FilterTree as _;
2626//! A trailing `/` is expanded to `dir/**`, so `"src/"` keeps all files under
2727//! `src/`. Multiple patterns are OR-ed together.
2828//!
29- //! # Filter by gitattributes
29+ //! # Filter by Attributes
3030//!
3131//! ```no_run
3232//! use git_filter_tree::FilterTree as _;
Original file line number Diff line number Diff line change 44//! plumbing library in a user-friendly `git`-style CLI. It operates on the
55//! working tree's index so results are immediately staged and ready to commit.
66//!
7- //! # CLI usage
7+ //! # CLI
88//!
99//! ```text
1010//! git rewrite tree [--only <PATTERN>]... [<TREEISH>]
2525//! By default the working tree must be clean. Pass `--allow-dirty` to skip
2626//! that check.
2727//!
28- //! # Library usage
28+ //! # Library
2929//!
3030//! [`exe::tree`] is the programmatic entry point. It opens a repository from
3131//! the environment, filters the given tree-ish by glob patterns, and rewrites
You can’t perform that action at this time.
0 commit comments