Méthode | Description | |
---|---|---|
FormRevisionHistory ( string targetFile ) : System |
Form constructor. Takes the git file name whose history is to be shown.
|
|
GetContextMenu ( ToolStrip owner ) : ToolStripItemCollection |
Builds and returns a context menu for revision history list
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
Méthode | Description | |
---|---|---|
DiffRevisionsMenuItemClick ( object sender, EventArgs e ) : void |
Diff 2 selected revisions
|
|
DiffVsClientFileMenuItemClick ( object sender, EventArgs e ) : void |
Diff selected against the HEAD revision
|
|
ExitMenuItemClick ( object sender, EventArgs e ) : void |
Close the dialog.
|
|
FormRevisionHistoryFormClosing ( object sender, FormClosingEventArgs e ) : void |
Form is closing.
|
|
FormRevisionHistoryLoad ( object sender, EventArgs e ) : void |
The form is loading. Get the file log information and fill it in.
|
|
GetTempFile ( string file, string sha ) : string |
Create a git file of a specific version. Use a temp file since the file content needs to be created from the git history.
|
|
InitializeComponent ( ) : void |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
|
ListRevDoubleClick ( object sender, EventArgs e ) : void |
Control is double-clicked. Open the selected item for viewing. Depending on the saved options, we either do nothing ("0"), open a file using a default Explorer file association ("1"), or open a file using a specified application ("2")
|
|
ListRevMouseUp ( object sender, MouseEventArgs e ) : void |
Right-mouse button opens a popup with the context menu
|
|
ListRevSelectedIndexChanged ( object sender, EventArgs e ) : void |
User clicked on a log item. Fetch its full description.
|
|
MenuCopyShaClick ( object sender, EventArgs e ) : void |
Copy the selected SHA number into the clipboard
|
|
MenuDescribeClick ( object sender, EventArgs e ) : void |
Describe (view) selected changelist
|
|
MenuViewEditClick ( object sender, EventArgs e ) : void |
Handler for the view file menus. The tag of the sender specifies the operation on a selected file: null will open a file using the default association, while any other tag specifies a program to run.
|
|
RunDiff ( string cmd ) : void |
Runs a diff tool in the context of the current repo for a selected file. This is a separate function that runs a git command since we want to start a diff process and do not block.
|
|
SyncMenuItemClick ( object sender, EventArgs e ) : void |
Sync file to the selected revision
|
|
ViewMenuItemDropDownOpening ( object sender, EventArgs e ) : void |
View file menu item is opening. Build a list of editors to view the selected file.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
Résultat | void |
public FormRevisionHistory ( string targetFile ) : System | ||
targetFile | string | |
Résultat | System |
public GetContextMenu ( ToolStrip owner ) : ToolStripItemCollection | ||
owner | ToolStrip | |
Résultat | ToolStripItemCollection |