Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 1 addition & 63 deletions SimpleGit-Provider.lvproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,69 +59,7 @@
</Item>
<Item Name="SimpleGit_Global_Interface.vi" Type="VI" URL="../SimpleGit/SimpleGit_Global_Interface.vi"/>
<Item Name="SimpleGit_Item_Interface.vi" Type="VI" URL="../SimpleGit/SimpleGit_Item_Interface.vi"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="BuildHelpPath.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/BuildHelpPath.vi"/>
<Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/>
<Item Name="Check Special Tags.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Check Special Tags.vi"/>
<Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/>
<Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Convert property node font to graphics font.vi"/>
<Item Name="Details Display Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Details Display Dialog.vi"/>
<Item Name="DialogType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogType.ctl"/>
<Item Name="DialogTypeEnum.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogTypeEnum.ctl"/>
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/>
<Item Name="Error Code Database.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Code Database.vi"/>
<Item Name="ErrWarn.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/ErrWarn.ctl"/>
<Item Name="eventvkey.ctl" Type="VI" URL="/&lt;vilib&gt;/event_ctls.llb/eventvkey.ctl"/>
<Item Name="Find Tag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find Tag.vi"/>
<Item Name="Format Message String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Format Message String.vi"/>
<Item Name="General Error Handler Core CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler Core CORE.vi"/>
<Item Name="General Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler.vi"/>
<Item Name="Get String Text Bounds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Get String Text Bounds.vi"/>
<Item Name="Get Text Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Get Text Rect.vi"/>
<Item Name="GetHelpDir.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetHelpDir.vi"/>
<Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetRTHostConnectedProp.vi"/>
<Item Name="GIT-API-for-LabVIEW.lvlib" Type="Library" URL="/&lt;vilib&gt;/Hampel Software Engineering/Git API/GIT-API-for-LabVIEW.lvlib"/>
<Item Name="High Resolution Relative Seconds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/High Resolution Relative Seconds.vi"/>
<Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Longest Line Length in Pixels.vi"/>
<Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/>
<Item Name="LVRectTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVRectTypeDef.ctl"/>
<Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/>
<Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/>
<Item Name="Not Found Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Not Found Dialog.vi"/>
<Item Name="Search and Replace Pattern.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Search and Replace Pattern.vi"/>
<Item Name="Set Bold Text.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set Bold Text.vi"/>
<Item Name="Set String Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set String Value.vi"/>
<Item Name="Simple Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Simple Error Handler.vi"/>
<Item Name="System Exec.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/System Exec.vi"/>
<Item Name="TagReturnType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/TagReturnType.ctl"/>
<Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog CORE.vi"/>
<Item Name="Three Button Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog.vi"/>
<Item Name="Trim Whitespace.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Trim Whitespace.vi"/>
<Item Name="whitespace.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/whitespace.ctl"/>
</Item>
<Item Name="Global_Interface.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/Global_Interface.ctl"/>
<Item Name="Item_Interface.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/Item_Interface.ctl"/>
<Item Name="ItemRef.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/ItemRef.ctl"/>
<Item Name="LV Config Read Boolean.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Boolean.vi"/>
<Item Name="LV Config Read Color.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Color.vi"/>
<Item Name="LV Config Read Numeric (I32).vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Numeric (I32).vi"/>
<Item Name="LV Config Read Pathlist.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Pathlist.vi"/>
<Item Name="LV Config Read String.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read String.vi"/>
<Item Name="LV Config Read.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read.vi"/>
<Item Name="LV Config Write Boolean.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Write Boolean.vi"/>
<Item Name="LV Config Write Color.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Write Color.vi"/>
<Item Name="LV Config Write Numeric (I32).vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Write Numeric (I32).vi"/>
<Item Name="LV Config Write Pathlist.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Write Pathlist.vi"/>
<Item Name="LV Config Write String.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Write String.vi"/>
<Item Name="LV Config Write.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Write.vi"/>
<Item Name="mxLvDebugDisplayCaller.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvDebugDisplayCaller.vi"/>
<Item Name="mxLvErrorHandler.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvErrorHandler.vi"/>
<Item Name="mxLvGetProjectRef.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvGetProjectRef.vi"/>
<Item Name="mxLvMenuItem.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvMenuItem.ctl"/>
<Item Name="mxLvProvider.mxx" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/mxLvProvider.mxx"/>
<Item Name="mxLvSetPopupMenu.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvSetPopupMenu.vi"/>
</Item>
<Item Name="Dependencies" Type="Dependencies"/>
<Item Name="Build Specifications" Type="Build"/>
</Item>
</Project>
Binary file modified SimpleGit/Git/Command/SimpleGit-Commit.vi
Binary file not shown.
Binary file modified SimpleGit/Git/Command/SimpleGit-LeaveDailyBranch.vi
Binary file not shown.
Binary file modified SimpleGit/Git/Command/SimpleGit-Pull.vi
Binary file not shown.
Binary file modified SimpleGit/Git/Command/SimpleGit-Push.vi
Binary file not shown.
Binary file modified SimpleGit/Git/Command/SimpleGit-Settings.vi
Binary file not shown.
Binary file modified SimpleGit/Git/Command/SimpleGit-Status.vi
Binary file not shown.
Binary file modified SimpleGit/Git/Command/SimpleGit-SwitchToDailyBranch.vi
Binary file not shown.
Binary file modified SimpleGit/Git/SimpleGit_Item_OnCommand.vi
Binary file not shown.
Binary file modified SimpleGit/Git/SimpleGit_Item_OnPopupMenu.vi
Binary file not shown.
Binary file modified SimpleGit/Git/SimpleGit_Item_OnUpdateCommand.vi
Binary file not shown.
Binary file modified SimpleGit/Git/SimpleGit_Menu_Hierachy.vi
Binary file not shown.
Binary file modified SimpleGit/Git/SimpleGit_OnCommand(SingleObject).vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/Close Caller FP if In LabVIEW folder.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/DailyPatchBranchName.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/GIT-Current Local Branches.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/Git Check whether Branch exists.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/SimpleGit Setting Dialog.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/config/simplegit.DailyBranchPrefix.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/config/simplegit.TortoiseGitProc.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/lvgit commit.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/lvgit pull.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/lvgit push.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/lvgit status.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/menu-Operations/menu-AddMenuGroups.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/menu-Operations/menu-ChangeLocation.vi
Binary file not shown.
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/menu-Operations/menu-ReplaceDotToSlash.vi
Binary file not shown.
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/menu-Operations/menu-SetWeights.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/tortoisegit/Tortoisegit Exists.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/tortoisegit/Tortoisegit commit.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/tortoisegit/Tortoisegit pull.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/tortoisegit/Tortoisegit push.vi
Binary file not shown.
Binary file modified SimpleGit/Git/_Support/tortoisegit/Tortoisegit status.vi
Binary file not shown.
Binary file not shown.
44 changes: 44 additions & 0 deletions SimpleGit/Git/_scripts/Check_if_branch_exists.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@echo off
REM ============================================================
REM Check_if_branch_exists.cmd
REM Checks whether a LOCAL Git branch exists in a repository.
REM
REM Zero setlocal, zero loops, zero pipes -> safe under
REM constrained hosts (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Check_if_branch_exists.cmd <branch> Check in current dir
REM Check_if_branch_exists.cmd <branch> "D:\repo" Check in given repo
REM (quote the repo path if it contains spaces; branch
REM names may contain slashes, e.g. "daily/2026-06-22")
REM
REM Output : prints TRUE if the local branch exists
REM prints FALSE if it does not / no branch given / error
REM Exit : 0 = TRUE (exists), 1 = FALSE (not found / error)
REM
REM Note : checks local heads only (refs/heads/<branch>); a
REM remote-tracking ref such as origin/<branch> does
REM NOT count as existing.
REM ============================================================

REM --- Require a branch name (arg 1) ---
if "%~1"=="" goto :false

REM --- Optional repo path (arg 2): branch in current dir vs given repo ---
if not "%~2"=="" goto :withpath

git show-ref --verify --quiet "refs/heads/%~1" 2>nul
if errorlevel 1 goto :false
goto :true

:withpath
git -C "%~2" show-ref --verify --quiet "refs/heads/%~1" 2>nul
if errorlevel 1 goto :false

:true
echo TRUE
exit /b 0

:false
echo FALSE
exit /b 1
34 changes: 34 additions & 0 deletions SimpleGit/Git/_scripts/Get_all_local_branches.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off
REM ============================================================
REM Get_all_local_branches.cmd
REM Lists all LOCAL branches in a Git repository. The current
REM branch is marked with '*' at the start of the line.
REM
REM Zero setlocal, zero loops -> safe under constrained hosts
REM (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Get_all_local_branches.cmd List in current directory
REM Get_all_local_branches.cmd "D:\repo path" List in given repo path
REM (quote the repo path if it contains spaces)
REM
REM Output : one branch per line; current branch prefixed with '*'
REM example:
REM * feat/add-scripts
REM feat/vscode-entry
REM main
REM (empty if there are no branches yet, e.g. unborn repo)
REM Exit : 0 = success
REM 1 = not a Git repository / error
REM ============================================================

if not "%~1"=="" goto :withpath

REM --- No path given: use current directory ---
git branch
exit /b %errorlevel%

:withpath
REM --- Explicit repo path ---
git -C "%~1" branch
exit /b %errorlevel%
34 changes: 34 additions & 0 deletions SimpleGit/Git/_scripts/Get_current_branch.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off
REM ============================================================
REM Get_current_branch.cmd
REM Prints the current Git branch name of a repository.
REM Outputs ONLY the branch name (nothing else) to stdout.
REM
REM Zero setlocal, zero loops, zero pipes -> safe under
REM constrained hosts (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Get_current_branch.cmd Use current directory
REM Get_current_branch.cmd "D:\repo path" Use given repo path
REM (quote paths with spaces)
REM
REM Output : the branch name on success (e.g. "main")
REM nothing when in detached-HEAD state
REM nothing when not a Git repository / on error
REM Exit : 0 = success, non-zero = not a repo / git error
REM
REM Note : uses 'git branch --show-current' (Git 2.22+),
REM which returns the real branch name even before
REM the first commit (unborn branch) and prints
REM nothing (instead of the literal "HEAD") when
REM the repository is in a detached-HEAD state.
REM ============================================================

if not "%~1"=="" goto :withpath

git branch --show-current 2>nul
exit /b %errorlevel%

:withpath
git -C "%~1" branch --show-current 2>nul
exit /b %errorlevel%
32 changes: 32 additions & 0 deletions SimpleGit/Git/_scripts/Get_current_commit.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@echo off
REM ============================================================
REM Get_current_commit.cmd
REM Prints the full commit hash (SHA-1) that HEAD points to
REM on the current branch. Outputs ONLY the hash to stdout.
REM
REM Zero setlocal, zero loops, zero pipes -> safe under
REM constrained hosts (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Get_current_commit.cmd Use current directory
REM Get_current_commit.cmd "D:\repo path" Use given repo path
REM (quote paths with spaces)
REM
REM Output : the 40-char commit hash on success
REM nothing when there are no commits yet (unborn
REM branch), not a Git repository, or on error
REM Exit : 0 = success, non-zero = no commit / not a repo / error
REM
REM Note : '--verify' is required so an unborn branch prints
REM nothing instead of the literal "HEAD". For the
REM short hash use 'rev-parse --short --verify HEAD'.
REM ============================================================

if not "%~1"=="" goto :withpath

git rev-parse --verify HEAD 2>nul
exit /b %errorlevel%

:withpath
git -C "%~1" rev-parse --verify HEAD 2>nul
exit /b %errorlevel%
32 changes: 32 additions & 0 deletions SimpleGit/Git/_scripts/Get_last_commit_message.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@echo off
REM ============================================================
REM Get_last_commit_message.cmd
REM Prints the subject line of the last commit on the current
REM branch (HEAD). Outputs ONLY the message to stdout.
REM
REM Zero setlocal, zero loops, zero pipes -> safe under
REM constrained hosts (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Get_last_commit_message.cmd Use current directory
REM Get_last_commit_message.cmd "D:\repo path" Use given repo path
REM (quote paths with spaces)
REM
REM Output : the last commit subject line on success
REM nothing when there are no commits yet (unborn
REM branch), not a Git repository, or on error
REM Exit : 0 = success, non-zero = no commit / not a repo / error
REM
REM Note : '%%s' (escaped '%') passes the git subject
REM placeholder '%s' through cmd. Use '%%B' for the
REM full message body instead of just the subject.
REM ============================================================

if not "%~1"=="" goto :withpath

git log -1 --format=%%s 2>nul
exit /b %errorlevel%

:withpath
git -C "%~1" log -1 --format=%%s 2>nul
exit /b %errorlevel%
35 changes: 35 additions & 0 deletions SimpleGit/Git/_scripts/Pull_with_prune.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@echo off
REM ============================================================
REM Pull_with_prune.cmd
REM Executes 'git pull --prune' on the repository, which:
REM - Fetches updates from remote(s)
REM - Merges (or rebases) into the current branch
REM - Prunes deleted remote-tracking branches locally
REM
REM Zero setlocal, zero loops -> safe under constrained hosts
REM (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Pull_with_prune.cmd Pull in current directory
REM Pull_with_prune.cmd "D:\repo path" Pull in given repo path
REM (quote the repo path if it contains spaces)
REM
REM Output : git pull output (status, merge result, prune details)
REM error messages on failure
REM Exit : git pull exit code (0 on success, >0 on error or conflict)
REM
REM Note : --prune is always included. For additional git pull
REM options (e.g. --rebase), invoke git directly or modify
REM the script to pass them.
REM ============================================================

if not "%~1"=="" goto :withpath

REM --- No path given: use current directory ---
git pull --prune
exit /b %errorlevel%

:withpath
REM --- Explicit repo path ---
git -C "%~1" pull --prune
exit /b %errorlevel%
34 changes: 34 additions & 0 deletions SimpleGit/Git/_scripts/Push_current_branch.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@echo off
REM ============================================================
REM Push_current_branch.cmd
REM Executes 'git push origin HEAD' on the repository, which
REM pushes ONLY the current branch to its remote counterpart
REM (or creates it if it doesn't exist on the remote).
REM
REM Zero setlocal, zero loops -> safe under constrained hosts
REM (e.g. LabVIEW System Exec).
REM
REM Usage:
REM Push_current_branch.cmd Push in current directory
REM Push_current_branch.cmd "D:\repo path" Push in given repo path
REM (quote the repo path if it contains spaces)
REM
REM Output : git push output (branch details, remote updates)
REM error messages on failure
REM Exit : git push exit code (0 on success, >0 on error)
REM
REM Note : pushes to the 'origin' remote (default). Uses HEAD
REM as the source ref to ensure ONLY the current branch
REM is pushed, never other branches.
REM ============================================================

if not "%~1"=="" goto :withpath

REM --- No path given: use current directory ---
git push origin HEAD
exit /b %errorlevel%

:withpath
REM --- Explicit repo path ---
git -C "%~1" push origin HEAD
exit /b %errorlevel%
Binary file modified SimpleGit/Git/_scripts/Run cmd File.vi
Binary file not shown.
Binary file modified SimpleGit/SimpleGit_Global_Interface.vi
Binary file not shown.
Binary file modified SimpleGit/SimpleGit_Item_Interface.vi
Binary file not shown.
Loading