MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / diff_changes_contains_file

Function diff_changes_contains_file

src/gitql/functions/diffs.rs:252–262  ·  view source on GitHub ↗
(values: &[Box<dyn Value>])

Source from the content-addressed store, hash-verified

250}
251
252fn diff_changes_contains_file(values: &[Box<dyn Value>]) -> Box<dyn Value> {
253 if let Some(changes) = values[0].as_any().downcast_ref::<DiffChangesValue>() {
254 let file = values[1].as_text().unwrap();
255 for change in changes.changes.iter() {
256 if change.location.eq(&file) {
257 return Box::new(BoolValue::new_true());
258 }
259 }
260 }
261 Box::new(BoolValue::new_false())
262}

Callers

nothing calls this directly

Calls 3

as_textMethod · 0.80
as_anyMethod · 0.45
eqMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…