Intégration de la branche pdev-fix
This commit is contained in:
		
						commit
						e2d0c0c13c
					
				
							
								
								
									
										19
									
								
								pdev
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								pdev
									
									
									
									
									
								
							| @ -48,6 +48,11 @@ OPTIONS | ||||
|         activée si la variable UTOOLS_VCS_OFFLINE est définie. | ||||
|     --online | ||||
|         Annuler l'effet de la variable UTOOLS_VCS_OFFLINE: forcer le mode online | ||||
|     --sync | ||||
|         Faire un certain nombre d'opération pour 'corriger' le dépôt local: pour | ||||
|         chacune des branches distantes, vérifier qu'il existe une branche locale | ||||
|         qui la traque, et pour chaque feature branche locale, vérifier qu'il | ||||
|         existe une branche distante associée. Cette option nécessite --online | ||||
| 
 | ||||
|     -m, --merge | ||||
|         Si la branche actuelle est une feature branch, la merger dans develop | ||||
| @ -90,6 +95,7 @@ parse_opts "${PRETTYOPTS[@]}" \ | ||||
|     -O:,--origin: origin= \ | ||||
|     -o,--offline UTOOLS_VCS_OFFLINE=1 \ | ||||
|     --online UTOOLS_VCS_OFFLINE= \ | ||||
|     --sync action=sync \ | ||||
|     -m,--merge action=merge \ | ||||
|     --merge-log merge_log=1 \ | ||||
|     -k,--keep merge_delete= \ | ||||
| @ -104,6 +110,18 @@ if [ -n "$projdir" ]; then | ||||
| fi | ||||
| 
 | ||||
| git_ensure_gitvcs | ||||
| 
 | ||||
| if [ "$action" == sync ]; then | ||||
|     [ -z "$UTOOLS_VCS_OFFLINE" ] || die "L'option --sync nécessite le mode --online" | ||||
| 
 | ||||
|     setx -a branches=list_feature_branches "$origin" | ||||
|     for branch in "${branches[@]}"; do | ||||
|         git_track_branch "$branch" "$origin" | ||||
|     done | ||||
| 
 | ||||
|     exit $? | ||||
| fi | ||||
| 
 | ||||
| if ! git_have_branch develop; then | ||||
|     estepn "Configuration de la branche develop" | ||||
|     git_ensure_branch develop master "$origin" | ||||
| @ -254,4 +272,5 @@ if [ "$action" == diff ]; then | ||||
|             git diff master..develop | ||||
|         fi | ||||
|     fi | ||||
|     exit $? | ||||
| fi | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user