about summary refs log tree commit diff stats
path: root/commands/exec.go
Commit message (Expand)AuthorAgeFilesLines
* all: purge redundant underscoresWagner Riffel2019-09-041-3/+3
* Fix re-opening of expired pipe tabsDrew DeVault2019-07-081-1/+5
* :exec, :pipe: show exit status on completionDrew DeVault2019-07-081-1/+2
* Add :exec and :pipe -b(ackground)Drew DeVault2019-07-081-0/+45
800 3789' href='/akkartik/mu/commit/snapshot_lesson?h=hlt&id=2c53c3d0a921aec9825946be8dc37eff95b95485'>2c53c3d0 ^
1
2
3
4
5
6
7
8
9
10
11
12


                                                                            
      







                                                                     
#!/bin/sh
# Hacky little helper called from edit/ and sandbox/ apps to save a snapshot
# of lesson/ using git.
set -e

test -d lesson/.git || exit 0  # give up if it's not a git repo

cd lesson
# explicitly say '--all' for git 1.9
git add --all .
# bug in git: git diff -q messes up --exit-code
git diff HEAD --exit-code >/dev/null || git commit -a -m . >/dev/null