Benutzer-Werkzeuge

Webseiten-Werkzeuge


pr:git-stuff

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
pr:git-stuff [2019/12/07 15:15] – git-pickbranch martokpr:git-stuff [2025/05/01 12:46] (aktuell) – Test auf Textfile martok
Zeile 68: Zeile 68:
 ===== Development branch in einen neuen für PR interaktiv rekonstruieren ===== ===== Development branch in einen neuen für PR interaktiv rekonstruieren =====
  
-<code bash>git-pickbranch develop master my-new-pr</code>+<code bash>git-pickbranch my-new-pr master develop</code>
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
Zeile 77: Zeile 77:
 TAIL=$3 TAIL=$3
 # switch to feature branch, make it point to last of set # switch to feature branch, make it point to last of set
-git checkout $FB+git checkout -B $FB
 git reset --hard $TAIL git reset --hard $TAIL
 # rebuild between first and last as feature branch, branching on start # rebuild between first and last as feature branch, branching on start
Zeile 83: Zeile 83:
 </code> </code>
  
 +===== Contribution nach Namen zum aktuellen Stand tabellieren =====
 +
 +<code bash>
 +perl -e 'chomp(my @ff=`git ls-files`); my $i=0,$n=$#ff+1; foreach(@ff) {$i++; print STDERR "Blaming $i / $n files..."."\b"x60; next unless -T -f; print `git blame --since 2.years -wMCC -t --no-progress -- "$_"`}; print STDERR "\n"' | grep -av '^\^' | perl -pe 's/^[0-9a-f]+\s+(.*\s+)?\((.*?)\s+\d+\s+[+-]\d+\s+\d+\).*$/\2/' | sort -f | uniq -ic | sort -rn
 +</code>
 +
 +`--since 2.years -wMCC` kann angepasst werden, `-t` muss da bleiben
pr/git-stuff.1575728141.txt.gz · Zuletzt geändert: 2019/12/07 15:15 von martok