Prechádzať zdrojové kódy

Kommentar zu git pull --ff-only in git2darcs.sh

FF-DO-Wiki mesh-j-3.free.de 9 rokov pred
rodič
commit
6d2b564390
1 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  1. 8 0
      _NOWIKI/git2darcs/git2darcs.sh

+ 8 - 0
_NOWIKI/git2darcs/git2darcs.sh

@@ -8,7 +8,15 @@ TMPDIR=/tmp/git2darcs
 [ -d $TMPDIR -a -w $TMPDIR ] || mkdir -p $TMPDIR || exit 1
 
 HEAD=`git rev-list --no-walk --pretty=%H HEAD | tail -1`
+
+# Nur fast-forward kompatible commits ziehen,
+# um keine Konflikte ins darcs zu recorden.
+# Im laufenden Betrieb muss der master branch
+# des git upstreams also "sauber" bleiben.
+# XXX Fehlermeldung per mail o.dgl. hinter das git pull bauen.
+
 git pull --ff-only --all
+
 FETCH_HEAD=`git rev-list --no-walk --pretty=%H FETCH_HEAD | tail -1`
 
 [ -n "$HEAD" -a -n "$FETCH_HEAD" ] && [ "$HEAD" = "$FETCH_HEAD" ] && exit 0