From c3ebc7b5e2ad6b2a3ed09d174a084eab70cc4abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brotmetchaes=20=C2=B7=20kevadesu?= <76264518+kevadesu@users.noreply.github.com> Date: Sat, 18 Jan 2025 14:08:44 +0100 Subject: [PATCH 1/9] Update README.md --- README.md | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5f299f3..3f33254 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,38 @@ -# Gir -Combining Oh Shit, Git!?! and Gum - +# Gir [TESTING] +A Git wrapper combining Oh Shit, Git!?! and Gum ## What is this? -With the elements of [Gum](https://github.com/charmbracelet/gum) and [Oh Shit, Git!?!](https://ohshitgit.com/), I made an attempt at making a simple shell script that can combine the two together. +This is the direct testing branch of Gir. It currently has no practical way to install. Every change gets pushed to this repo. +## No, I meant what is this project? +Oh, right! +With the elements of [Gum](https://github.com/charmbracelet/gum) and [Oh Shit, Git!?!](https://ohshitgit.com/), I made an attempt at making a simple Git wrapper that can combine the two together. There's not much else to say.......except that the Setup...at least works -To install, grab the latest Setup.sh from [the latest release](https://github.com/Icycoide/Gir/releases/latest) and run it +## Installing the Testing branch +### ⚠️ BEFORE YOU PROCEED!!!! +You are using this branch at your OWN RISK. By installing the testing branch, YOU agree to NOT blame me for any fuck-ups occuring to your Git repo. Remember, this is not a way to "get the cool updates faster", this is the CONSTRUCTION site. +### you have been warned. +If you still want to install, proceed as followed: +1. **Clone the repository** +```bash +git clone https://github.com/Icycoide/Gir +``` +Make sure you remember where you put the repository! + +2. **Switch to testing branch** +```bash +git checkout testing +``` + +3. **Create a symlink to the file in the repository** +```bash +sudo ln -s /path/to/git/repository/main.sh /path/to/destination/for/binary/gir +``` + +## Updating +Updating is as simple as going to the source repository and running the following (assuming you didn't fuck up anything, in which case you'd have to reset to remote): +```bash +git pull +``` This is licensed under the MIT license From 7057491fd003f3594e57970acc1fd9c580ef8534 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 15:41:37 +0100 Subject: [PATCH 2/9] Change the colour --- Setup.sh | 2 +- main.sh | 33 ++++++++++++++++++--------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Setup.sh b/Setup.sh index 979ebe0..84f01a2 100755 --- a/Setup.sh +++ b/Setup.sh @@ -103,7 +103,7 @@ Other: Input any path" echo "Ok!" ;; esac - sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.3/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." + sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.1.0/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." sudo chmod +x $INSTALL_PATH/gir || echo "FAIL | Either insufficient permissions or file does not exist or sudo does not exist." } diff --git a/main.sh b/main.sh index 5ed1541..608fcff 100755 --- a/main.sh +++ b/main.sh @@ -3,7 +3,7 @@ function gir.main() { clear git remote -v - MENU_CHOICE=$(gum filter --header.foreground="#fab387" --unselected-prefix.foreground="#fab387" --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "(Destructive) Reset to remote state" "(Re)initialise repository" "About" "Quit") + MENU_CHOICE=$(gum filter --header.foreground="#fe640b" --unselected-prefix.foreground="#fe640b" --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "(Destructive) Reset to remote state" "(Re)initialise repository" "About" "Quit") case $MENU_CHOICE in "Time Machine") gir.timemachine @@ -27,17 +27,17 @@ function gir.main() { gir.undocommit ;; "Read file") - gum pager < $(gum file --height=5 --selected.foreground="#fab387" --all --cursor.foreground="#fab387" --directory.foreground="#fe640b") + gum pager < $(gum file --height=5 --selected.foreground="#fe640b" --all --cursor.foreground="#fe640b" --directory.foreground="#fe640b") ;; "Add files to commit") - git add $(ls | gum filter --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") + git add $(ls | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") ;; "Remove files from commit") - git rm $(ls | gum filter --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") + git rm $(ls | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") ;; "Commit") - git commit -m "$(gum input --cursor.foreground="#fab387" --width 50 --placeholder "Summary of changes")" \ - -m "$(gum write --cursor.foreground="#fab387" --width 80 --placeholder "Details of changes")" + git commit -m "$(gum input --cursor.foreground="#fe640b" --width 50 --placeholder "Summary of changes")" \ + -m "$(gum write --cursor.foreground="#fe640b" --width 80 --placeholder "Details of changes")" ;; "Push changes") git push @@ -48,6 +48,9 @@ function gir.main() { "Stash changes") git stash ;; + "") + gir.switchbranch + ;; "(Re)initialise repository") git init ;; @@ -69,20 +72,20 @@ function gir.timemachine() { git reflog LINE_COUNT=$(git reflog | wc -l) MAX_OUT=$(($LINE_COUNT - 1)) - INDEX=$(gum input --cursor.foreground="#fab387" --placeholder "Select the index to reset to...") + INDEX=$(gum input --cursor.foreground="#fe640b" --placeholder "Select the index to reset to...") clear git reflog | grep "HEAD@{$INDEX}" - gum confirm "Selected index is $INDEX. Are you sure you want to time travel back to it?" --selected.background="#fab387" --prompt.foreground="#fab387" && git reset HEAD@{$INDEX} || echo "Operation cancelled." + gum confirm "Selected index is $INDEX. Are you sure you want to time travel back to it?" --selected.background="#fe640b" --prompt.foreground="#fe640b" && git reset HEAD@{$INDEX} || echo "Operation cancelled." } function gir.tecommit() { - gum confirm "Are you sure you want to amend the last commit? It is not recommended to do this with public commits" --selected.background="#fab387" --prompt.foreground="#fab387" || kill -INT $$ - git add $(ls | gum filter --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") + gum confirm "Are you sure you want to amend the last commit? It is not recommended to do this with public commits" --selected.background="#fe640b" --prompt.foreground="#fe640b" || kill -INT $$ + git add $(ls | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") git commit --amend --no-edit } function gir.editcommit() { - gum confirm "Are you sure you want to amend the last commit? It is not recommended to do this with public commits" --selected.background="#fab387" --prompt.foreground="#fab387" || kill -INT $$ + gum confirm "Are you sure you want to amend the last commit? It is not recommended to do this with public commits" --selected.background="#fe640b" --prompt.foreground="#fe640b" || kill -INT $$ git commit --amend } @@ -92,7 +95,7 @@ function gir.wrongbranch() { CORRECT_BRANCH=$(gum input --placeholder "Input the name of the correct branch") gum spin --spinner minidot --title "Running git checkout..." -- git checkout $CORRECT_BRANCH git stash pop - git add $(ls | gum filter --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") + git add $(ls | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") git commit -m } @@ -102,7 +105,7 @@ function gir.undocommit() { } function gir.undofile() { - git checkout $(git log --oneline | gum filter --selected-indicator.foreground="#fab387" --indicator.foreground="#fab387" --match.foreground="#fab387" --no-limit --header "Select hash to undo" --prompt="| " --indicator="> " | cut -d' ' -f1) -- $(gum file --show-help --all --file --directory --height=5 --selected.foreground="#fab387" --cursor.foreground="#fab387" --directory.foreground="#fe640b") + git checkout $(git log --oneline | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Select hash to undo" --prompt="| " --indicator="> " | cut -d' ' -f1) -- $(gum file --show-help --all --file --directory --height=5 --selected.foreground="#fe640b" --cursor.foreground="#fe640b" --directory.foreground="#fe640b") git commit -m "$(gum input --width 50 --placeholder "Summary of changes (wow you didnt even have to copy-paste to undo)")" \ -m "$(gum write --width 80 --placeholder "Details of changes")" } @@ -122,11 +125,11 @@ $(git --version) host system kernel: $(uname -sr) learn more about this release at: -https://github.com/Icycoide/Gir/releases/tag/v$GIR_VERSION" +https://github.com/Icycoide/Gir/releases/tag/v0.2.3" } function gir.variables() { - GIR_VERSION=0.2.3 + GIR_VERSION=testing } gir.variables From 3585e1a61034d45b020dcdc8c4d434e7f49b2d72 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 16:49:33 +0100 Subject: [PATCH 3/9] Adding option to switch branch aaaaaaaaaaaaaaa --- main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index 608fcff..36f0512 100755 --- a/main.sh +++ b/main.sh @@ -48,8 +48,8 @@ function gir.main() { "Stash changes") git stash ;; - "") - gir.switchbranch + "Switch branch") + git checkout $(git branch | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Select hash to undo" --prompt="| " --indicator="> " | sed 's/*//g') ;; "(Re)initialise repository") git init From 7219b2d99152c2b17a62ff5ff269a205d2a90e6f Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 17:47:42 +0100 Subject: [PATCH 4/9] Add an option to change repository branch --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 36f0512..71f2ddb 100755 --- a/main.sh +++ b/main.sh @@ -3,7 +3,7 @@ function gir.main() { clear git remote -v - MENU_CHOICE=$(gum filter --header.foreground="#fe640b" --unselected-prefix.foreground="#fe640b" --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "(Destructive) Reset to remote state" "(Re)initialise repository" "About" "Quit") + MENU_CHOICE=$(gum filter --header.foreground="#fe640b" --unselected-prefix.foreground="#fe640b" --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "Switch branch" "(Destructive) Reset to remote state" "(Re)initialise repository" "About" "Quit") case $MENU_CHOICE in "Time Machine") gir.timemachine From ea98dfd5a62381125200f3be033170a9c0cd2416 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 19:37:43 +0100 Subject: [PATCH 5/9] Adding info section --- Setup.sh | 2 +- main.sh | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Setup.sh b/Setup.sh index 84f01a2..979ebe0 100755 --- a/Setup.sh +++ b/Setup.sh @@ -103,7 +103,7 @@ Other: Input any path" echo "Ok!" ;; esac - sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.1.0/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." + sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.3/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." sudo chmod +x $INSTALL_PATH/gir || echo "FAIL | Either insufficient permissions or file does not exist or sudo does not exist." } diff --git a/main.sh b/main.sh index 71f2ddb..aa78333 100755 --- a/main.sh +++ b/main.sh @@ -2,8 +2,7 @@ function gir.main() { clear - git remote -v - MENU_CHOICE=$(gum filter --header.foreground="#fe640b" --unselected-prefix.foreground="#fe640b" --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --prompt="| " --indicator=">" --header="Current directory: $PWD" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "Switch branch" "(Destructive) Reset to remote state" "(Re)initialise repository" "About" "Quit") + MENU_CHOICE=$(gum filter --header.foreground="#fe640b" --unselected-prefix.foreground="#fe640b" --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --prompt="| " --indicator=">" --header="Repository: $PWD ($(git branch | grep "*" | sed 's/* //g'))" --placeholder="Option" "Time Machine" "Add addition to last commit" "Edit last commit's message" "Correct an edit to a different branch" "Diff with fancy flag" "Undo file" "Undo commit" "Read file" "Add files to commit" "Remove files from commit" "Commit" "Push changes" "Pull changes" "Stash changes" "Switch branch" "(Destructive) Reset to remote state" "(Re)initialise repository" "Information about current repo" "About" "Quit") case $MENU_CHOICE in "Time Machine") gir.timemachine @@ -49,7 +48,7 @@ function gir.main() { git stash ;; "Switch branch") - git checkout $(git branch | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Select hash to undo" --prompt="| " --indicator="> " | sed 's/*//g') + git checkout $(git branch | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --header "Select hash to undo" --prompt="| " --indicator="> " | sed 's/* //g' | sed 's/ //g') ;; "(Re)initialise repository") git init @@ -57,6 +56,11 @@ function gir.main() { "(Destructive) Reset to remote state") gum confirm "You are about to reset this repository to the remote state, which will delete all untracked files and overwrite everything with whatever is stored remotely. Are you sure?" --affirmative="Yes, reset!" --negative="No, I changed my mind." --prompt.foreground="#d20f39" --selected.background="#d20f39" && gir.reset || echo "Operation cancelled." ;; + "Information about current repo") + git remote -v + echo " Branch | $(git branch | grep "*" | sed 's/* //g')" + echo "Current directory | $PWD" + ;; "About") gir.about ;; From 9ebd457279406093bbb92939dce8e110ca309142 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 20:03:06 +0100 Subject: [PATCH 6/9] Add environment variable "GIR_FORCEALL" Annoyed whenever you need to remove something but Git needs you to force it? Now you can run Gir with the environment variable GIR_FORCEALL Set it to either 1, TRUE or true and it will know to force all git operations. --- main.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.sh b/main.sh index aa78333..87ccb9d 100755 --- a/main.sh +++ b/main.sh @@ -32,7 +32,14 @@ function gir.main() { git add $(ls | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") ;; "Remove files from commit") - git rm $(ls | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Add files" --prompt="| " --indicator="> " --selected-prefix "YES " --unselected-prefix " NO " --placeholder "Press TAB to select, Enter to confirm...") + case $GIR_FORCEALL in + 1|TRUE|true) + git rm $(ls | gum filter --selected-indicator.foreground="#d20f39" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Remove files" --prompt="| " --indicator="> " --selected-prefix "REMOVE " --unselected-prefix " KEEP " --placeholder "Press TAB to select, Enter to confirm...") -f + ;; + *) + git rm $(ls | gum filter --selected-indicator.foreground="#d20f39" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Remove files" --prompt="| " --indicator="> " --selected-prefix "REMOVE " --unselected-prefix " KEEP " --placeholder "Press TAB to select, Enter to confirm...") + ;; + esac ;; "Commit") git commit -m "$(gum input --cursor.foreground="#fe640b" --width 50 --placeholder "Summary of changes")" \ @@ -48,7 +55,7 @@ function gir.main() { git stash ;; "Switch branch") - git checkout $(git branch | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --header "Select hash to undo" --prompt="| " --indicator="> " | sed 's/* //g' | sed 's/ //g') + git checkout $(git branch | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --header "Select branch to switch to" --prompt="| " --indicator="> " | sed 's/* //g' | sed 's/ //g') ;; "(Re)initialise repository") git init @@ -104,7 +111,7 @@ function gir.wrongbranch() { } function gir.undocommit() { - SEL_HASH=$(git log --oneline | gum filter | cut -d' ' -f1) + SEL_HASH=$(git log --oneline | gum filter --selected-indicator.foreground="#fe640b" --indicator.foreground="#fe640b" --match.foreground="#fe640b" --no-limit --header "Select hash to undo" --prompt="| " --indicator="> " | cut -d' ' -f1) git revert $SEL_HASH } From f9fcd7586cc3dbbd9f3dc8913df4098e105dbcc1 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Sat, 18 Jan 2025 20:05:33 +0100 Subject: [PATCH 7/9] a --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3f33254..debaeb5 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,10 @@ Updating is as simple as going to the source repository and running the followin git pull ``` +## (on the Testing branch only) Git won't let me do this without specifying -f! How do I make Gir force something?? +You launch Gir with the environment variable GIR_FORCEALL set to either 1, TRUE or true. Observe the example below: +```bash +GIR_FORCEALL=TRUE /path/to/executable/gir +``` + This is licensed under the MIT license From c95792338e87c871b5eb7d091c6d4f5088f1e744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brotmetchaes=20=C2=B7=20kevadesu?= <76264518+kevadesu@users.noreply.github.com> Date: Sat, 18 Jan 2025 19:42:32 +0000 Subject: [PATCH 8/9] Update version --- Setup.sh | 2 +- main.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Setup.sh b/Setup.sh index 979ebe0..de05528 100755 --- a/Setup.sh +++ b/Setup.sh @@ -103,7 +103,7 @@ Other: Input any path" echo "Ok!" ;; esac - sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.3/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." + sudo wget -O $INSTALL_PATH/gir https://github.com/Icycoide/Gir/releases/download/v0.2.4/main.sh || echo "FAIL | Either failed download or invalid path or sudo does not exist." sudo chmod +x $INSTALL_PATH/gir || echo "FAIL | Either insufficient permissions or file does not exist or sudo does not exist." } diff --git a/main.sh b/main.sh index 87ccb9d..754fc1d 100755 --- a/main.sh +++ b/main.sh @@ -136,11 +136,11 @@ $(git --version) host system kernel: $(uname -sr) learn more about this release at: -https://github.com/Icycoide/Gir/releases/tag/v0.2.3" +https://github.com/Icycoide/Gir/releases/tag/v0.2.4" } function gir.variables() { - GIR_VERSION=testing + GIR_VERSION=0.2.4 } gir.variables From 063b80ba9a607114220bf261f6530f76b0e37920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brotmetchaes=20=C2=B7=20kevadesu?= <76264518+kevadesu@users.noreply.github.com> Date: Sat, 18 Jan 2025 19:43:56 +0000 Subject: [PATCH 9/9] eeee --- README.md | 43 +++++-------------------------------------- 1 file changed, 5 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index debaeb5..5f299f3 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,11 @@ -# Gir [TESTING] -A Git wrapper combining Oh Shit, Git!?! and Gum +# Gir +Combining Oh Shit, Git!?! and Gum + ## What is this? -This is the direct testing branch of Gir. It currently has no practical way to install. Every change gets pushed to this repo. -## No, I meant what is this project? -Oh, right! -With the elements of [Gum](https://github.com/charmbracelet/gum) and [Oh Shit, Git!?!](https://ohshitgit.com/), I made an attempt at making a simple Git wrapper that can combine the two together. +With the elements of [Gum](https://github.com/charmbracelet/gum) and [Oh Shit, Git!?!](https://ohshitgit.com/), I made an attempt at making a simple shell script that can combine the two together. There's not much else to say.......except that the Setup...at least works -## Installing the Testing branch -### ⚠️ BEFORE YOU PROCEED!!!! -You are using this branch at your OWN RISK. By installing the testing branch, YOU agree to NOT blame me for any fuck-ups occuring to your Git repo. Remember, this is not a way to "get the cool updates faster", this is the CONSTRUCTION site. -### you have been warned. -If you still want to install, proceed as followed: -1. **Clone the repository** -```bash -git clone https://github.com/Icycoide/Gir -``` -Make sure you remember where you put the repository! - -2. **Switch to testing branch** -```bash -git checkout testing -``` - -3. **Create a symlink to the file in the repository** -```bash -sudo ln -s /path/to/git/repository/main.sh /path/to/destination/for/binary/gir -``` - -## Updating -Updating is as simple as going to the source repository and running the following (assuming you didn't fuck up anything, in which case you'd have to reset to remote): -```bash -git pull -``` - -## (on the Testing branch only) Git won't let me do this without specifying -f! How do I make Gir force something?? -You launch Gir with the environment variable GIR_FORCEALL set to either 1, TRUE or true. Observe the example below: -```bash -GIR_FORCEALL=TRUE /path/to/executable/gir -``` +To install, grab the latest Setup.sh from [the latest release](https://github.com/Icycoide/Gir/releases/latest) and run it This is licensed under the MIT license