sapling/eden/mononoke/mononoke_api/src/changeset_path_diff.rs
Lukasz Piatkowski 542d1f93d3 Manual synchronization of fbcode/eden and facebookexperimental/eden
Summary:
This commit manually synchronizes the internal move of
fbcode/scm/mononoke under fbcode/eden/mononoke which couldn't be
performed by ShipIt automatically.

Reviewed By: StanislavGlebik

Differential Revision: D19722832

fbshipit-source-id: 52fbc8bc42a8940b39872dfb8b00ce9c0f6b0800
2020-02-11 11:42:43 +01:00

22 lines
678 B
Rust

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
use crate::changeset_path::ChangesetPathContext;
/// A path difference between two commits.
///
/// A ChangesetPathDiffContext shows the difference between two corresponding
/// files in the commits.
#[derive(Clone, Debug)]
pub enum ChangesetPathDiffContext {
Added(ChangesetPathContext),
Removed(ChangesetPathContext),
Changed(ChangesetPathContext, ChangesetPathContext),
Copied(ChangesetPathContext, ChangesetPathContext),
Moved(ChangesetPathContext, ChangesetPathContext),
}