# ChangeSets()

> Gets a list of pending changesets owned by the current user.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.VersionControl](/engine/6000.5/script-reference/unityeditor/versioncontrol.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static Task ChangeSets()
```

### Returns

| Type                                                                       | Description |
| -------------------------------------------------------------------------- | ----------- |
| [Task](/engine/6000.5/script-reference/unityeditor/versioncontrol/task.md) |             |

### Remarks

```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;

public class EditorScript : MonoBehaviour
{
    [MenuItem("Version Control/Changesets")]
    static void ExampleChangeSets()
    {
        Task t = Provider.ChangeSets();
        t.Wait();
        t.changeSets.ForEach(changeset => Debug.Log(changeset.id + " : " + changeset.description));
    }
}
```

The code above will output all of the currently active changesets to the console.
