"Touch" the channel after `pijul diff` if the diff and the prefixes are both empty
Dependencies
- [2]
EUZFFJSOUpdating Pijul with the latest changes in Libpijul - [3]
EWZ7VHV4pijul diff: Do not ignore the --untracked option in presence of --short. - [4]
HSEYMLO2Adding an untracked change iterator - [5]
I52XSRUHMassive cleanup, and simplification - [6]
CCLLB7OIUpgrading to Sanakirja 0.15 + version bump - [7]
SXEYMYF7Fixing the bad changes in history (unfortunately, by rebooting). - [8]
I24UEJQLVarious post-fire fixes - [9]
NWU66ZIPUntracked files when there are no other changes
Change contents
- replacement in pijul/src/commands/diff.rs at line 106[4.175145]→[2.16340:16371](∅→∅),[2.16371]→[4.175145:175171](∅→∅),[4.20353]→[4.175145:175171](∅→∅),[4.175145]→[4.175145:175171](∅→∅)
let txn = txn.write();let actions = reclet mut txn_ = txn.write();let actions: Vec<_> = rec - replacement in pijul/src/commands/diff.rs at line 110
.map(|rec| rec.globalize(&*txn).unwrap()).map(|rec| rec.globalize(&*txn_).unwrap()) - edit in pijul/src/commands/diff.rs at line 112
let actions_is_empty = actions.is_empty(); - replacement in pijul/src/commands/diff.rs at line 119
&*txn,&*txn_, - replacement in pijul/src/commands/diff.rs at line 128
full_dependencies(&*txn, &channel)?full_dependencies(&*txn_, &channel)? - replacement in pijul/src/commands/diff.rs at line 130
dependencies(&*txn, &*channel.read(), change.changes.iter())?dependencies(&*txn_, &*channel.read(), change.changes.iter())? - replacement in pijul/src/commands/diff.rs at line 228
for path in untracked(&repo, &*txn)? {for path in untracked(&repo, &*txn_)? { - replacement in pijul/src/commands/diff.rs at line 233
for path in untracked(&repo, &*txn)? {for path in untracked(&repo, &*txn_)? { - edit in pijul/src/commands/diff.rs at line 252
if actions_is_empty && self.prefixes.is_empty() {use libpijul::ChannelMutTxnT;txn_.touch_channel(&mut *channel.write(), None);std::mem::drop(txn_);txn.commit()?;}