diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-10-12 14:46:28 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-10-12 14:46:47 -0400 |
commit | db92795125fd5d9df3b1cf50f92c1e046645f8bf (patch) | |
tree | e5832b6e06ab04946a176129ed3a0a78c1a60577 /bash-completion.bash | |
parent | 5abc2da9d1f4f6043370158fb1c0569eccf29941 (diff) |
Avoid unncessary write to the location log when a file is unlocked and then added back with unchanged content.
Implemented with no additional overhead of compares etc.
This is safe to do for presence logs because of their locality of change;
a given repo's presence logs are only ever changed in that repo, or in a
repo that has just been actively changing the content of that repo.
So, we don't need to worry about a split-brain situation where there'd
be disagreement about the location of a key in a repo. And so, it's ok to
not update the timestamp when that's the only change that would be made
due to logging presence info.
Diffstat (limited to 'bash-completion.bash')
0 files changed, 0 insertions, 0 deletions