Edit

GitObjectReference Class

Definition

Represents a shallow reference to a Git object for serialization

[System.Runtime.Serialization.DataContract]
public class GitObjectReference : Microsoft.TeamFoundation.SourceControl.WebApi.Legacy.Entity
type GitObjectReference = class
    inherit Entity
Public Class GitObjectReference
Inherits Entity
Inheritance
Attributes

Examples

A GitCommit may have several parents, represented by a list of GitObjectReference instances. This list would be serialized to JSON as something like "parents": [ { "objectId": "25c12518372b4a18f1b9d85f83ae01097604dc88", "url": "http://my-tfs-server/_apis/git/commits/25c12518372b4a18f1b9d85f83ae01097604dc88" } ]

Applies to