History

[repository #165] refactor

Sebastian Thiel committed 5 years ago

Commit 00ec15d1 parent 0f131048 files · +225 −229Browse files

Showing the changes to git-ref/src (1 of 8 files). Show all

Unified · Split

git-ref/src/store/packed/transaction.rs+4−1
@@ -116,7 +116,10 @@ impl packed::Transaction { · 115 unmodified lines
116116 Ok(self)
117117 }
118118
119− /// Commit the prepare transaction
119+ /// Commit the prepared transaction.
120+ ///
121+ /// Please note that actual edits invalidated existing packed buffers.
122+ /// Note: There is the potential to write changes into memory and return such a packed-refs buffer for reuse.
120123 pub fn commit(self) -> Result<(), commit::Error> {
121124 let mut edits = self.edits.expect("BUG: cannot call commit() before prepare(…)");
122125 if edits.is_empty() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t