Intégration de la branche release-1.5.1
This commit is contained in:
		
						commit
						22244ac9bf
					
				| @ -1,5 +1,12 @@ | ||||
| ## Version 1.5.1 du 29/04/2015-10:14 | ||||
| 
 | ||||
| 4c92f54 Intégration de la branche push-all | ||||
| 02c15f9 pp -a pousse toutes les branches et tous les tags. ajouter les options -b et -t pour pousser respectivement toutes les branches et tous les tags | ||||
| 
 | ||||
| ## Version 1.4.1 du 29/04/2015-10:12 | ||||
| 
 | ||||
| Release erronée, à ignorer | ||||
| 
 | ||||
| ## Version 1.4.0 du 27/04/2015-18:12 | ||||
| 
 | ||||
| 7122fc4 Intégration de la branche norm-properties | ||||
|  | ||||
| @ -1 +1 @@ | ||||
| 1.5.0 | ||||
| 1.5.1 | ||||
|  | ||||
							
								
								
									
										22
									
								
								lib/ulib/vcs
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								lib/ulib/vcs
									
									
									
									
									
								
							| @ -450,9 +450,11 @@ function git_update() { | ||||
|     git pull "$@" | ||||
| } | ||||
| function git_push() { | ||||
|     local all auto force args | ||||
|     local all all_branches all_tags auto force args | ||||
|     parse_opts + "${PRETTYOPTS[@]}" \ | ||||
|         -a,--all all=1 \ | ||||
|         -b,--branches,--all-branches all_branches=1 \ | ||||
|         -t,--tags,--all-tags all_tags=1 \ | ||||
|         --auto auto=1 \ | ||||
|         -f,--force force=1 \ | ||||
|         @ args -- "$@" && set -- "${args[@]}" || { | ||||
| @ -465,8 +467,17 @@ function git_push() { | ||||
|         git push "$@" | ||||
|         return $? | ||||
|     elif [ -n "$all" ]; then | ||||
|         # On a demandé à pusher toutes les branches et tous les tags | ||||
|         git push --all | ||||
|         git push --tags | ||||
|         return $? | ||||
|     elif [ -n "$all_branches" ]; then | ||||
|         # On a demandé à pusher toutes les branches | ||||
|         git push --all "$@" | ||||
|         git push --all | ||||
|         return $? | ||||
|     elif [ -n "$all_tags" ]; then | ||||
|         # On a demandé à pusher tous les tags | ||||
|         git push --tags | ||||
|         return $? | ||||
|     fi | ||||
| 
 | ||||
| @ -487,12 +498,15 @@ function git_push() { | ||||
|     if [ -n "$branch" -a "$origin" == origin ]; then | ||||
|         if [ -n "$auto" ]; then | ||||
|             # en mode automatique, ne pousser que la branche courante | ||||
|             git push origin "$branch" || return | ||||
|             git push "$origin" "$branch" || return | ||||
|         else | ||||
|             # pousser toutes les branches | ||||
|             # utiliser la configuration par défaut, qui est sous debian squeeze | ||||
|             # de pousser toutes les branches | ||||
|             git push || return | ||||
|         fi | ||||
|     elif [ -n "$force" ]; then | ||||
|         # utiliser la configuration par défaut, qui est sous debian squeeze de | ||||
|         # pousser toutes les branches | ||||
|         git push || return | ||||
|     fi | ||||
|     return 0 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user