Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Persist object refs on disk with a trailing newline
Match git's behavior. This improves compatibility with alternative Git
client programs such as Sublime Merge.
  • Loading branch information
handlerug committed Aug 12, 2025
commit 6c0cc7165609b056850f15ee464863dae1b99a97
2 changes: 1 addition & 1 deletion gix-ref/src/store/file/transaction/prepare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl Transaction<'_, '_> {
let mut lock = lock.take().map_or_else(obtain_lock, Ok)?;

lock.with_mut(|file| match new {
Target::Object(oid) => write!(file, "{oid}"),
Target::Object(oid) => writeln!(file, "{oid}"),
Target::Symbolic(name) => writeln!(file, "ref: {}", name.0),
})?;
Some(lock.close()?)
Expand Down
Loading