Skip to content

Commit 0652dde

Browse files
committed
^ f Add customizable text
1 parent e745ede commit 0652dde

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tcr-commit-and-push.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ if [[ -z $statusResult ]]; then
1010
fi
1111

1212
read -r -d '' applescript <<'EndOfScript'
13-
set commitMessage to text returned of (display dialog "Commit message:" default answer "" buttons {"Commit"} default button "Commit")
13+
set instructions to "(Leave empty to cancel)"
14+
set commitMessage to text returned of (display dialog instructions default answer "" with title "Commit message:" buttons {"Commit"} default button "Commit")
1415
return commitMessage
1516
EndOfScript
1617

tcr-commit.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ if [[ -z $statusResult ]]; then
1010
fi
1111

1212
read -r -d '' applescript <<'EndOfScript'
13-
set commitMessage to text returned of (display dialog "Commit message:" default answer "" buttons {"Commit"} default button "Commit")
13+
set instructions to "(Leave empty to cancel)"
14+
set commitMessage to text returned of (display dialog instructions default answer "" with title "Commit message:" buttons {"Commit"} default button "Commit")
1415
return commitMessage
1516
EndOfScript
1617

0 commit comments

Comments
 (0)