Browse Source

Fix bug in git alias snap

pull/15/head
10sr 9 years ago
parent
commit
74883bedbc
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      Makefile
  2. +3
    -0
      emacs.el

+ 1
- 1
Makefile View File

@@ -323,7 +323,7 @@ endif


$(git_conf) alias.todo "grep -nH -E -i 'todo:|note:|fixme:'" $(git_conf) alias.todo "grep -nH -E -i 'todo:|note:|fixme:'"


$(git_conf) alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$$cmt" && git update-ref refs/snapshot $$cmt && echo Snapshot created: $$cmt'
$(git_conf) alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$$cmt" && git update-ref refs/snapshot $$cmt && echo Snapshot created: $$cmt'


#$(git_conf) alias.wc "!git ls-files -z | xargs -0 wc" #$(git_conf) alias.wc "!git ls-files -z | xargs -0 wc"
# $(git_conf) push.default "simple" # $(git_conf) push.default "simple"


+ 3
- 0
emacs.el View File

@@ -978,6 +978,9 @@ IF OK-IF-ALREADY-EXISTS is true force download."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; some modes and hooks ;; some modes and hooks


(when (autoload-eval-lazily 'term-run '(term-run-shell-command term-run))
(define-key ctl-x-map "t" 'term-run-shell-command))

(add-to-list 'safe-local-variable-values (add-to-list 'safe-local-variable-values
'(encoding utf-8)) '(encoding utf-8))
(setq enable-local-variables :safe) (setq enable-local-variables :safe)


Loading…
Cancel
Save