| Autor | SHA1 | Mensagem | Data |
|---|---|---|---|
|
|
208cc11bbf |
Merge develop
Reviewed-on: #1 |
há 3 semanas |
|
|
5bd95aaad8 | [develop] 202512180851 | há 3 semanas |
|
|
e42cfcb7dc | [develop] 202512180851 | há 3 semanas |
|
|
2a9ae666fa | [ develop ] 202512180850 | há 3 semanas |
|
|
3af7646264 | [ develop ] 202512180846 | há 3 semanas |
|
|
b33ea191ab | develop : 202512180844 | há 3 semanas |
|
|
cedf94d2fe | 202511260820 | há 1 mês |
|
|
095d35d999 | 202511260818 | há 1 mês |
|
|
3b4d658e9c | 202511211457 | há 1 mês |
|
|
693b63ec7f | 202511211455 | há 1 mês |
|
|
227cf54995 | 202511211320 | há 1 mês |
|
|
8483b06342 | 202511211253 | há 1 mês |
|
|
ac3003b23e | 202511211240 | há 1 mês |
|
|
fd00e31ba7 | 202511211234 | há 1 mês |
|
|
bf218c2f8e | 202511211232 | há 1 mês |
|
|
0d3e70a9c4 | 202511211227 | há 1 mês |
|
|
85afb168dd | 202511211224 | há 1 mês |
|
|
4c3cf65a0d | 202511201610 | há 1 mês |
| @ -1,20 +0,0 @@ | |||||
| #!/bin/env bash | |||||
| git_current_branch() { | |||||
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |||||
| } | |||||
| CUR_BRANCH=`git_current_branch` | |||||
| CIBLE=$1 | |||||
| if [ "$CIBLE" == "" ] | |||||
| then | |||||
| CIBLE=$CUR_BRANCH | |||||
| fi | |||||
| git_01_quick_commit.sh | |||||
| if [ ! "$CIBLE" = "$CUR_BRANCH" ]; | |||||
| then | |||||
| git checkout $CIBLE | |||||
| git pull | |||||
| fi | |||||
| @ -1,28 +0,0 @@ | |||||
| #!/bin/env bash | |||||
| git_current_branch() { | |||||
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |||||
| } | |||||
| CUR_BRANCH=`git_current_branch` | |||||
| TEST=`git status | grep propre | wc -l` | |||||
| if [ $TEST -eq 0 ] | |||||
| then | |||||
| echo "La branche actuelle ($CUR_BRANCH) n'est pas propre" | |||||
| echo # (optional) move to a new line | |||||
| read -p "Voulez-vous voir les modifications courantes ? " -n 1 -r | |||||
| echo # (optional) move to a new line | |||||
| if [[ $REPLY =~ ^[YyOo]$ ]] | |||||
| then | |||||
| git status | |||||
| fi | |||||
| echo # (optional) move to a new line | |||||
| read -p "Voulez-vous ajouter les modifications courantes ? " -n 1 -r | |||||
| echo # (optional) move to a new line | |||||
| if [[ $REPLY =~ ^[YyOo]$ ]] | |||||
| then | |||||
| git add . | |||||
| fi | |||||
| fi | |||||
| @ -1,11 +1,13 @@ | |||||
| #!/bin/env bash | #!/bin/env bash | ||||
| TIMESTAMP=`date "+%Y%m%d%H%M"` | TIMESTAMP=`date "+%Y%m%d%H%M"` | ||||
| COURANTE=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | sed 's:(::g' | sed 's:)::g' | xargs` | |||||
| git_00_status.sh | |||||
| git add . | |||||
| TEST=`git status | grep propre | wc -l` | |||||
| if [ $TEST -eq 0 ] | |||||
| TEST=$(git_99_status.sh) | |||||
| if [ ! "$TEST" = "GIT STATUS OK" ] | |||||
| then | then | ||||
| git commit -m "$TIMESTAMP" | |||||
| git commit -m "[$COURANTE] $TIMESTAMP" | |||||
| fi | fi | ||||
| @ -16,7 +16,7 @@ then | |||||
| echo # (optional) move to a new line | echo # (optional) move to a new line | ||||
| if [[ $REPLY =~ ^[YyOo]$ ]] | if [[ $REPLY =~ ^[YyOo]$ ]] | ||||
| then | then | ||||
| git_00_checkout_branch.sh develop | |||||
| git_98_checkout_branch.sh develop | |||||
| fi | fi | ||||
| fi | fi | ||||
| @ -1,26 +1,22 @@ | |||||
| #!/bin/env bash | #!/bin/env bash | ||||
| git_current_branch() { | |||||
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |||||
| } | |||||
| CUR_BRANCH=`git_current_branch` | |||||
| CIBLE=$1 | CIBLE=$1 | ||||
| if [ "$CIBLE" == "" ] | if [ "$CIBLE" == "" ] | ||||
| then | then | ||||
| CIBLE=$CUR_BRANCH | |||||
| echo "Using $GIT_CURRENT_BRANCH as cible" | |||||
| CIBLE=$GIT_CURRENT_BRANCH | |||||
| fi | fi | ||||
| git_01_quick_commit.sh | git_01_quick_commit.sh | ||||
| if [ ! "$CIBLE" = "$CUR_BRANCH" ]; | |||||
| if [ ! "$CIBLE" = "$GIT_CURRENT_BRANCH" ]; | |||||
| then | then | ||||
| git_00_checkout_branch.sh $CIBLE | |||||
| git_98_checkout_branch.sh $CIBLE | |||||
| fi | fi | ||||
| git push all | git push all | ||||
| if [ ! "$CIBLE" = "$CUR_BRANCH" ]; | |||||
| if [ ! "$CIBLE" = "$GIT_CURRENT_BRANCH" ]; | |||||
| then | then | ||||
| git_00_checkout_branch.sh $CUR_BRANCH | |||||
| git_98_checkout_branch.sh $GIT_CURRENT_BRANCH | |||||
| fi | fi | ||||
| @ -1,14 +1,10 @@ | |||||
| #!/bin/env bash | #!/bin/env bash | ||||
| git_current_branch() { | |||||
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |||||
| } | |||||
| CUR_BRANCH=`git_current_branch` | |||||
| CIBLE=$1 | CIBLE=$1 | ||||
| if [ "$CIBLE" == "" ] | if [ "$CIBLE" == "" ] | ||||
| then | then | ||||
| CIBLE=$CUR_BRANCH | |||||
| Using $GIT_CURRENT_BRANCH as cible | |||||
| CIBLE=$GIT_CURRENT_BRANCH | |||||
| fi | fi | ||||
| internal_delete_branch() { | internal_delete_branch() { | ||||
| @ -27,19 +23,19 @@ delete_branch() { | |||||
| git_03_push_branch.sh | git_03_push_branch.sh | ||||
| if [ ! "$CUR_BRANCH" = "develop" ] | |||||
| if [ ! "$GIT_CURRENT_BRANCH" = "develop" ] | |||||
| then | then | ||||
| echo "La branche actuelle n'est pas develop" | echo "La branche actuelle n'est pas develop" | ||||
| read -p "Voulez-vous basculer sur develop ? " -n 1 -r | read -p "Voulez-vous basculer sur develop ? " -n 1 -r | ||||
| echo # (optional) move to a new line | echo # (optional) move to a new line | ||||
| if [[ $REPLY =~ ^[YyOo]$ ]] | if [[ $REPLY =~ ^[YyOo]$ ]] | ||||
| then | then | ||||
| git_00_checkout_branch.sh develop | |||||
| git_98_checkout_branch.sh develop | |||||
| fi | fi | ||||
| fi | fi | ||||
| case $CIBLE in | case $CIBLE in | ||||
| ($CUR_BRANCH) echo "Impossible : $CIBLE is current branch !";; | |||||
| ($GIT_CURRENT_BRANCH) echo "Impossible : $CIBLE is current branch !";; | |||||
| ("evo"*) delete_branch $CIBLE;; | ("evo"*) delete_branch $CIBLE;; | ||||
| ("ano"*) delete_branch $CIBLE;; | ("ano"*) delete_branch $CIBLE;; | ||||
| (*) echo "$CIBLE is not a feature branch";; | (*) echo "$CIBLE is not a feature branch";; | ||||
| @ -0,0 +1,34 @@ | |||||
| #!/bin/env bash | |||||
| if [ ! $# -eq 2 ] | |||||
| then | |||||
| echo "usage : rename old_branch new_branch" | |||||
| exit 1 | |||||
| fi | |||||
| # Source - https://stackoverflow.com/a | |||||
| # Posted by CodeWizard, modified by community. See post 'Timeline' for change history | |||||
| # Retrieved 2025-11-21, License - CC BY-SA 4.0 | |||||
| # Names of things - allows you to copy/paste commands | |||||
| old_name=$1 | |||||
| new_name=$2 | |||||
| remote=all | |||||
| # Rename the local branch to the new name | |||||
| git branch -m $old_name $new_name | |||||
| # Delete the old branch on remote | |||||
| git push $remote --delete $old_name | |||||
| # Prevent git from using the old name when pushing in the next step. | |||||
| # Otherwise, git will use the old upstream name instead of $new_name. | |||||
| git branch --unset-upstream $new_name | |||||
| # Push the new branch to remote | |||||
| git push $remote $new_name | |||||
| # Reset the upstream branch for the new_name local branch | |||||
| git push $remote -u $new_name | |||||
| @ -0,0 +1,15 @@ | |||||
| #!/bin/env bash | |||||
| CIBLE=$1 | |||||
| if [ "$CIBLE" == "" ] | |||||
| then | |||||
| CIBLE=$GIT_CURRENT_BRANCH | |||||
| fi | |||||
| git_01_quick_commit.sh | |||||
| if [ ! "$CIBLE" = "$GIT_CURRENT_BRANCH" ]; | |||||
| then | |||||
| git checkout $CIBLE | |||||
| git pull | |||||
| fi | |||||
| @ -0,0 +1,22 @@ | |||||
| #!/bin/env bash | |||||
| TEST1=`git status | grep propre | wc -l` | |||||
| if [ $TEST1 -eq 0 ] | |||||
| then | |||||
| echo "La branche actuelle ($GIT_CURRENT_BRANCH) n'est pas propre" | |||||
| echo # (optional) move to a new line | |||||
| read -p "Voulez-vous voir les modifications courantes ? " -n 1 -r | |||||
| echo # (optional) move to a new line | |||||
| if [[ $REPLY =~ ^[YyOo]$ ]] | |||||
| then | |||||
| git status | |||||
| fi | |||||
| echo | |||||
| fi | |||||
| TEST2=`git status | grep propre | wc -l` | |||||
| if [ $TEST1 -eq 1 ] | |||||
| then | |||||
| echo "GIT STATUS OK" | |||||
| fi | |||||
| @ -0,0 +1,113 @@ | |||||
| [33mcommit e42cfcb7dc3e79302c1eb124a65bf745cc379e10[m[33m ([m[1;36mHEAD -> [m[1;32mdevelop[m[33m)[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Dec 18 08:51:37 2025 +0100 | |||||
| [develop] 202512180851 | |||||
| [33mcommit 2a9ae666fa1510332404ea8c7e85668e5dc1869d[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Dec 18 08:50:30 2025 +0100 | |||||
| [ develop ] 202512180850 | |||||
| [33mcommit 3af764626489262da68f290efa00d39d0f6c7755[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Dec 18 08:46:52 2025 +0100 | |||||
| [ develop ] 202512180846 | |||||
| [33mcommit b33ea191abfb2f5c7803effa9a49b3bf24f56982[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Dec 18 08:44:56 2025 +0100 | |||||
| develop : 202512180844 | |||||
| [33mcommit cedf94d2fe2999969ce0a15a018476458928f27d[m[33m ([m[1;31morigin/develop[m[33m)[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Wed Nov 26 08:20:02 2025 +0100 | |||||
| 202511260820 | |||||
| [33mcommit 095d35d999210b34b40bc7556d787282b69b7546[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Wed Nov 26 08:18:28 2025 +0100 | |||||
| 202511260818 | |||||
| [33mcommit 3b4d658e9c5045ddbe93c95d02426ce6cc50e5f6[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 14:57:29 2025 +0100 | |||||
| 202511211457 | |||||
| [33mcommit 693b63ec7f80c57c5827635e88665a1e478726af[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 14:55:57 2025 +0100 | |||||
| 202511211455 | |||||
| [33mcommit 227cf54995382d7b757b90d63995b1b8e4e8435f[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 13:20:34 2025 +0100 | |||||
| 202511211320 | |||||
| [33mcommit 8483b06342a43230ff0b6a721b3d9ad0cf2f0774[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 12:53:49 2025 +0100 | |||||
| 202511211253 | |||||
| [33mcommit ac3003b23e416025124ba718e74a3db9026e3ae3[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 12:40:24 2025 +0100 | |||||
| 202511211240 | |||||
| [33mcommit fd00e31ba701a5e736f51afa46b186ad2d51c100[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 12:34:39 2025 +0100 | |||||
| 202511211234 | |||||
| [33mcommit bf218c2f8e242d47dfca9cb73d99e048bd932ad4[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 12:32:37 2025 +0100 | |||||
| 202511211232 | |||||
| [33mcommit 0d3e70a9c49c649a80fcd98b47464373c0446a3f[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 12:27:52 2025 +0100 | |||||
| 202511211227 | |||||
| [33mcommit 85afb168dd65b03c6f88c99f037fe32ff0c4d3f6[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Fri Nov 21 12:24:52 2025 +0100 | |||||
| 202511211224 | |||||
| [33mcommit 4c3cf65a0d5073e86aa658999b06253a36885fa5[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Nov 20 16:10:29 2025 +0100 | |||||
| 202511201610 | |||||
| [33mcommit 9d93b82d0734e692958494f2c46263fb77340db2[m[33m ([m[1;31morigin/production[m[33m, [m[1;31morigin/hotfix[m[33m, [m[1;32mproduction[m[33m, [m[1;32mhotfix[m[33m)[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Nov 20 16:00:08 2025 +0100 | |||||
| 202511201600 | |||||
| [33mcommit 689995449d46f3bfdd438758387a86e78ffc3b9e[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Nov 20 15:41:06 2025 +0100 | |||||
| 202511201541 | |||||
| [33mcommit c68019a2050c7657ef84aea0b75c43fc8637435e[m | |||||
| Author: Thibaud <tibo@topisto.net> | |||||
| Date: Thu Nov 20 15:28:54 2025 +0100 | |||||
| Initial commit | |||||
| @ -1,9 +1,14 @@ | |||||
| #!/bin/env bash | #!/bin/env bash | ||||
| git_parse_branches() { | |||||
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |||||
| } | |||||
| git_current_branch() { | git_current_branch() { | ||||
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |||||
| export GIT_CURRENT_BRANCH="$(git_parse_branches)" | |||||
| } | } | ||||
| export CUR_BRANCH=`git_current_branch`o | |||||
| git_current_branch | |||||
| usage(){ | usage(){ | ||||
| echo | echo | ||||
| @ -15,20 +20,21 @@ usage(){ | |||||
| echo ---- push pour git_03_push_branch.sh | echo ---- push pour git_03_push_branch.sh | ||||
| echo ---- merge pour git_04_merge_branch.sh | echo ---- merge pour git_04_merge_branch.sh | ||||
| echo ---- delete pour git_05_delete_feature_branch.sh | echo ---- delete pour git_05_delete_feature_branch.sh | ||||
| echo ---- delete_all pour git_06_delete_all_feature_branch.sh | |||||
| echo ---- delete_all pour git_06_delete_all_features_branch.sh | |||||
| } | } | ||||
| GITCMD=$1 | GITCMD=$1 | ||||
| shift | shift | ||||
| case $GITCMD in | case $GITCMD in | ||||
| ("checkout") git_00_checkout_branch.sh $@;; | |||||
| ("status") git_00_status.sh $@;; | |||||
| ("checkout") git_98_checkout_branch.sh $@;; | |||||
| ("status") git_99_status.sh $@;; | |||||
| ("commit") git_01_quick_commit.sh $@;; | ("commit") git_01_quick_commit.sh $@;; | ||||
| ("add") git_02_add_branch.sh $@;; | ("add") git_02_add_branch.sh $@;; | ||||
| ("push") git_03_push_branch.sh $@;; | ("push") git_03_push_branch.sh $@;; | ||||
| ("merge") git_04_merge_branch.sh $@;; | ("merge") git_04_merge_branch.sh $@;; | ||||
| ("delete") git_05_delete_feature_branch.sh $@;; | ("delete") git_05_delete_feature_branch.sh $@;; | ||||
| ("delete_all") git_06_delete_all_feature_branch.sh $@;; | |||||
| ("delete_all") git_06_delete_all_features_branch.sh $@;; | |||||
| ("rename") git_07_rename_branch.sh $@;; | |||||
| (*) echo && echo "$GITCMD is not a GITCMD !" && usage;; | (*) echo && echo "$GITCMD is not a GITCMD !" && usage;; | ||||
| esac | esac | ||||