1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! The `scan` subcommand: scans the filesystem for git repos.
//!
//! By default, the user's home directory is walked, but this starting point can
//! be configured in `~/.gitconfig`:
//!
//! ```bash
//! $ git config --global global.basedir /some/path
//! ```
//!
//! Additional directories can be scanned by passing them as arguments:
//!
//! ```bash
//! $ git global scan /extra/path1 /extra/path2
//! ```
//!
//! The `scan` subcommand caches the list of git repos paths it finds, and can
//! be rerun at any time to refresh the list.
use PathBuf;
use crateConfig;
use crateResult;
use crateReport;
/// Clears the cache, forces a rescan, and says how many repos were found.