Crates.io | di2 |
lib.rs | di2 |
version | 0.8.0 |
source | src |
created_at | 2019-11-14 00:52:40.201368 |
updated_at | 2019-11-16 05:15:05.738263 |
description | diff files staged for commit in git repository, optionally limited to a given file or directory |
homepage | |
repository | https://github.com/ctsrc/repotools/tree/master/di2 |
max_upload_size | |
id | 181086 |
size | 15,937 |
This crate provides the di
command, and is part of the
repotools set of utilities.
You can install all of the repotools utilites by running the following command in your terminal:
cargo install repotools
If you want to install only some of them, you can install them individually. Refer to the repotools for the full list of utilities and links to their individual crates.
To install di
utility individually, run the following
command in your terminal:
cargo install di2
di [<path>...]
– diff files staged for commit in git repository, optionally limited to one or more files or directoriesPrior to committing, and also now and then while still working on the code, it is very useful to review what you are about commit, both to ensure that you are about to commit what you think you are about to commit, and in order to write useful commit messages that accurately describe the changes.
di
shows the diff for the staged changes against HEAD.
di
is like git diff --cached
, only more awesome.