This repository was archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 445
File History #961
Closed
Closed
File History #961
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
afec12d
File History
sambonfire 6796651
Merge branch 'master' into master
sambonfire 423f38d
Merge branch 'master' into master
StanleyGoldman f9f5202
Fixing build error
StanleyGoldman f5bab7a
Nit pick text
StanleyGoldman 29b5142
Fixing project reference
StanleyGoldman 32aa03d
Merge remote-tracking branch 'remotes/origin/master' into 961-fixes
StanleyGoldman dd5218d
Adding a context menu
StanleyGoldman 333df3d
Merge pull request #1 from github-for-unity/961-fixes
sambonfire 5f566c4
Prefer IList vs IEnumerable
sambonfire e7aad49
fix asmdef files giving errors on 2018.3
sambonfire 389905c
Overwrite confirmation and bug fixes
sambonfire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
namespace GitHub.Unity | ||
{ | ||
class Organization | ||
public class Organization | ||
{ | ||
public string Name { get; set; } | ||
public string Login { get; set; } | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/UnityExtension/Assets/Editor/GitHub.Unity/ExtensionLoader/ExtensionLoader.asmdef
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/UnityExtension/Assets/Editor/GitHub.Unity/UI/ContextMenu.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
namespace GitHub.Unity | ||
{ | ||
public class ContextMenu | ||
{ | ||
[MenuItem("Assets/Git/History", false)] | ||
private static void GitFileHistory() | ||
{ | ||
if (Selection.assetGUIDs != null) | ||
{ | ||
int maxWindowsToOpen = 10; | ||
int windowsOpened = 0; | ||
foreach(var guid in Selection.assetGUIDs) | ||
{ | ||
var assetPath = AssetDatabase.GUIDToAssetPath(guid); | ||
FileHistoryWindow.OpenWindow(assetPath); | ||
windowsOpened++; | ||
if (windowsOpened >= maxWindowsToOpen) | ||
{ | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
|
||
[MenuItem("Assets/Git/History", true)] | ||
private static bool GitFileHistoryValidation() | ||
{ | ||
return Selection.assetGUIDs != null && Selection.assetGUIDs.Length > 0; | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.