forked from lix-project/lix
Warn when we commit a new revision
This commit is contained in:
parent
022287060b
commit
be2580be01
|
@ -599,6 +599,11 @@ LockedFlake lockFlake(
|
||||||
FlakeCache dummyCache;
|
FlakeCache dummyCache;
|
||||||
flake = getFlake(state, topRef, {}, lockFlags.useRegistries, dummyCache);
|
flake = getFlake(state, topRef, {}, lockFlags.useRegistries, dummyCache);
|
||||||
|
|
||||||
|
if (lockFlags.commitLockFile &&
|
||||||
|
flake.lockedRef.input->getRev() &&
|
||||||
|
prevLockedRef.input->getRev() != flake.lockedRef.input->getRev())
|
||||||
|
warn("committed new revision '%s'", flake.lockedRef.input->getRev()->gitRev());
|
||||||
|
|
||||||
/* Make sure that we picked up the change,
|
/* Make sure that we picked up the change,
|
||||||
i.e. the tree should usually be dirty
|
i.e. the tree should usually be dirty
|
||||||
now. Corner case: we could have reverted from a
|
now. Corner case: we could have reverted from a
|
||||||
|
|
Loading…
Reference in a new issue