C# 클래스 GitForce.FormRevisionHistory

파일 보기 프로젝트 열기: gdevic/GitForce 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
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.

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

FormRevisionHistory() 공개 메소드

Form constructor. Takes the git file name whose history is to be shown.
public FormRevisionHistory ( string targetFile ) : System
targetFile string
리턴 System

GetContextMenu() 공개 메소드

Builds and returns a context menu for revision history list
public GetContextMenu ( ToolStrip owner ) : ToolStripItemCollection
owner ToolStrip
리턴 ToolStripItemCollection