MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / header

Method header

atomic-repository/src/diff_engine.rs:420–425  ·  view source on GitHub ↗

Get the graph_op header in unified diff format. Returns a string like `@@ -1,5 +1,6 @@`

(&self)

Source from the content-addressed store, hash-verified

418 ///
419 /// Returns a string like `@@ -1,5 +1,6 @@`
420 pub fn header(&self) -> String {
421 format!(
422 "@@ -{},{} +{},{} @@",
423 self.old_start, self.old_count, self.new_start, self.new_count
424 )
425 }
426
427 /// Check if this graph_op contains any changes.
428 pub fn has_changes(&self) -> bool {

Callers 15

bind_project_identityMethod · 0.45
sync_pushMethod · 0.45
sync_pullMethod · 0.45
upload_changeMethod · 0.45
store_changeMethod · 0.45
put_view_manifestMethod · 0.45
upload_tagMethod · 0.45
upload_attestationMethod · 0.45
upload_provenanceMethod · 0.45
build_change_diffFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected