A few fixes in the documentation comments
[?]
Nov 26, 2020, 6:16 PM
KWAMD2KR5UYRHHPZWL7GY2KQKNXNVS4BYBVK3FXDI23NQMWA3U4QCDependencies
- [2]
M3VTIZCPValidate change before reset - [3]
YDKNUL6BAdd `diff --short` that lists changes without showing them - [4]
4H2XTVJ2Fix some mistakes in the docs - [5]
TZVUNELWDocumentation comments - [6]
AEPEFS7OWrite help for each argument - [7]
5HF7C67Mpush/pull: fixed "changes" arguments - [8]
Q4SVMHAERemoving --channel from the changes command - [9]
L4JXJHWXpijul/*: reorganize imports and remove extern crate - [10]
23LVKATNUse pager crate for log output - [11]
VQPAUKBQchannel switch as an alias to reset - [12]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting).
Change contents
- replacement in pijul/src/commands/upgrade.rs at line 12
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/unrecord.rs at line 11
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/reset.rs at line 12
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/reset.rs at line 15
/// Reset the working copy to thid channel/// Reset the working copy to this channel, and change the current channel to this channel. - replacement in pijul/src/commands/reset.rs at line 18
/// Print this file to the standard output/// Print this file to the standard output, without modifying the repository (works for a single file only). - edit in pijul/src/commands/reset.rs at line 21[5.384]→[4.498:566](∅→∅),[4.566]→[4.566:618](∅→∅),[4.618]→[5.98014:98043](∅→∅),[5.384]→[5.98014:98043](∅→∅),[5.816]→[5.98014:98043](∅→∅),[5.98014]→[5.98014:98043](∅→∅),[5.98043]→[5.385:417](∅→∅)
/// Apply these changes to the working copy after switching to/// thid channel, but do not touch the prestine#[clap(long = "change")]pub change: Option<String>, - edit in pijul/src/commands/reset.rs at line 41
} else if let Some(ref chg) = self.change {txn.hash_from_prefix(&chg)?;txn.open_or_create_channel(&channel_name)? - edit in pijul/src/commands/reset.rs at line 99
if let Some(ch) = self.change {let (hash, _) = txn.hash_from_prefix(&ch)?;txn.apply_change_rec(&repo.changes, &mut channel, hash)?} - replacement in pijul/src/commands/record.rs at line 31
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/pushpull.rs at line 18
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/pushpull.rs at line 84
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/protocol.rs at line 20
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/log.rs at line 14
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/log.rs at line 23
/// Include state identifiers in the log output/// Include state identifiers in the output - replacement in pijul/src/commands/log.rs at line 26
/// Include full change discription in the log output/// Include full change description in the output - replacement in pijul/src/commands/init.rs at line 10
/// Initialize repository with this channel as the default channel/// Set the name of the current channel (defaults to "main"). - replacement in pijul/src/commands/git.rs at line 17
#[clap(long = "stats")]/// Process this path instead of the current directory, creating a Pijul repository if necessary.pub repo_path: Option<PathBuf>,/// Time the import, and output values to this file.#[clap(long = "stats", setting = AppSettings::Hidden)] - replacement in pijul/src/commands/git.rs at line 22
pub repo_path: Option<PathBuf>,#[clap(default_value = "0")]/// Check only the first n commits processed.#[clap(default_value = "0", setting = AppSettings::Hidden)] - replacement in pijul/src/commands/fork.rs at line 11
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/file_operations.rs at line 12
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/file_operations.rs at line 69
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/file_operations.rs at line 88
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/file_operations.rs at line 133
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - edit in pijul/src/commands/diff.rs at line 15
/// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - edit in pijul/src/commands/diff.rs at line 18
/// Output the diff in JSON format instead of the default change text format. - edit in pijul/src/commands/diff.rs at line 21
/// Compare with this channel. - edit in pijul/src/commands/diff.rs at line 24
/// Add all the changes of this channel as dependencies (except changes implied transitively), instead of the minimal dependencies. - edit in pijul/src/commands/diff.rs at line 27
/// Show a short version of the diff. - edit in pijul/src/commands/diff.rs at line 30
/// Only diff those paths (files or directories). If missing, diff the entire repository. - replacement in pijul/src/commands/credit.rs at line 15
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/clone.rs at line 21
/// clone this state/// Clone this state - replacement in pijul/src/commands/clone.rs at line 32
/// Path where to clone the repository/// If not given, the name of the remote repsoitory is given/// Path where to clone the repository./// If missing, the inferred name of the remote repository is used. - replacement in pijul/src/commands/channel.rs at line 11
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - edit in pijul/src/commands/channel.rs at line 66
change: None, - replacement in pijul/src/commands/archive.rs at line 12
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/apply.rs at line 13
/// Set the repository where this command should run Defaults to the first ancestor of the current directory that contains a `.pijul` directory./// Set the repository where this command should run. Defaults to the first ancestor of the current directory that contains a `.pijul` directory. - replacement in pijul/src/commands/apply.rs at line 19
/// Only apply the dependencies of this change/// Only apply the dependencies of this change, not the change itself. - replacement in pijul/src/commands/apply.rs at line 22
/// The change that need to be applied/// The change that need to be applied. If this value is missing, read the change in text format on the standard input.