Skip to content

Instantly share code, notes, and snippets.

@markknol
Last active December 9, 2020 11:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markknol/0bcc516cc0b7a138562be4a9953cc71b to your computer and use it in GitHub Desktop.
Save markknol/0bcc516cc0b7a138562be4a9953cc71b to your computer and use it in GitHub Desktop.
HaxeDevelop/FlashDevelop TortoiseGit buttons. Put this in your user config files > settings/Toolbar.xml
<button label="Git Sync" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command sync -path $(Quote)$(ProjectDir)$(Quote)" image="59" />
<button label="Git Pull" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command pull -path $(Quote)$(ProjectDir)$(Quote)" image="71" />
<button label="Git Push" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command push -path $(Quote)$(ProjectDir)$(Quote)" image="72" />
<button label="Git Commit" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command commit -path $(Quote)$(ProjectDir)$(Quote)" image="258" />
<button label="Git Commit (current file only)" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command commit -logmsg $(Quote)$(TypName)$(Quote) -path $(Quote)$(CurFile)$(Quote)" image="80" />
<button label="Git Switch" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command switch -path $(Quote)$(ProjectDir)$(Quote)" image="70" />
<button label="Git Create branch" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command branch -path $(Quote)$(ProjectDir)$(Quote)" image="12" />
<button label="Git Stash Save" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command stashsave -path $(Quote)$(ProjectDir)$(Quote)" image="74" />
<button label="Git Stash Pop" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command stashpop -path $(Quote)$(ProjectDir)$(Quote)" image="60" />
<button label="Git Log" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command log -path $(Quote)$(ProjectDir)$(Quote)" image="415" />
<button label="Git Diff current file" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command diff -path $(Quote)$(CurFile)$(Quote)" image="416" />
<button label="Git Revert" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command revert -path $(Quote)$(ProjectDir)$(Quote)" image="69" />
<button label="Git Tag" click="RunProcess" tag="$(Quote)C:\Program Files\TortoiseGit\bin\TortoiseGitProc.exe$(Quote);-command tag -path $(Quote)$(ProjectDir)$(Quote)" image="533" />
<separator />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment