Skip to content

Instantly share code, notes, and snippets.

@cschep
Created July 13, 2015 20:51
Show Gist options
  • Save cschep/a1d2ff3ecbbda4915be6 to your computer and use it in GitHub Desktop.
Save cschep/a1d2ff3ecbbda4915be6 to your computer and use it in GitHub Desktop.

Revisions

  1. cschep created this gist Jul 13, 2015.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    #!/bin/bash

    set -e

    if [ ! -f $2 ]; then
    touch $2
    fi

    echo $1 >> $2

    cat names.txt |
    while read name; do
    clear
    echo "***" $name "***"
    git checkout origin/$name --quiet
    echo "$name|3|3|3|" >> $2
    # vim -O $1 ~/hackreactor/grading/metric.self-assessment/problems/$1 < /dev/tty > /dev/tty
    vim -c ":30split ~/hackreactor/grading/metric.self-assessment/problems/$1" -c ":vsplit $1" + $2 < /dev/tty > /dev/tty
    # read confirm < /dev/tty
    # echo $name|$confirm >> $2
    git co $1 --quiet
    done

    git checkout master