withoutPath method
Implementation
GitIndex withoutPath(
String path, {
int? stage,
}) {
final updatedEntries = [
for (final entry in entries)
if (!(entry.path == path && (stage == null || entry.stage == stage)))
entry,
];
return GitIndex(
version: version,
checksumAlgorithm: checksumAlgorithm,
entries: updatedEntries,
extensions: extensions,
);
}