[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29197: 27.0.50; pre-commit checks for new files against "head"

From: Stefan Monnier
Subject: bug#29197: 27.0.50; pre-commit checks for new files against "head"
Date: Tue, 07 Nov 2017 14:18:50 -0500

Package: Emacs
Version: 27.0.50

I finally figured out why recently, every time I merge changes from
master into my local branch it complains:

    File name does not consist of -+./_ or ASCII letters or digits.

It turns out it's because it's looking at the diff between master and my
local (merged) branch (i.e. it looks at my local changes) whereas before
it would look at the diff between the old version of my local branch and
the merged version of my local branch (i.e. at the changes I'm pulling
from master).

And yes, indeed, my local branch has some files with "weird" chars
in it.

I think the warning should be improved:
- I shouldn't get a warning in the above case, since this commit doesn't
  *add* those files (they weren't on origin/master admittedly but they were
  already on HEAD).
- the warning should give me some hint about which file fails the test.


In GNU Emacs 27.0.50 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 3.22.24)
 of 2017-11-05 built on alfajor
Repository revision: 7b20a85bf651debb66742d7ed8a55bdc883ded79
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description:     Debian GNU/Linux testing (buster)

Recent messages:
Saving file /home/monnier/src/emacs/trunk/build-aux/git-hooks/pre-commit...
Wrote /home/monnier/src/emacs/trunk/build-aux/git-hooks/pre-commit
funcall-interactively: Buffer is read-only: #<buffer pre-commit | hooks>
Read-Only mode disabled in current buffer
Saving file /home/monnier/src/emacs/work/.git/hooks/pre-commit...
Wrote /home/monnier/src/emacs/work/.git/hooks/pre-commit
Saving file /home/monnier/src/emacs/trunk/build-aux/git-hooks/pre-commit...
Wrote /home/monnier/src/emacs/trunk/build-aux/git-hooks/pre-commit
Mark set [2 times]

Configured using:
 'configure -C --enable-checking --with-modules --enable-check-lisp-object-type
 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign'

Configured features:

Important settings:
  value of $LANG: fr_CH.UTF-8
  locale-coding-system: utf-8-unix

Major mode: InactiveMinibuffer

Minor modes in effect:
  diff-auto-refine-mode: t
  electric-pair-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  global-compact-docstrings-mode: t
  url-handler-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  global-prettify-symbols-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/monnier/src/emacs/elpa/packages/svg/svg hides 
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides 
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-stmt hides 
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-prj hides 
/home/monnier/src/emacs/elpa/packages/ada-mode/ada-xref hides 
/home/monnier/src/emacs/elpa/packages/hyperbole/set hides 
/home/monnier/src/emacs/elpa/packages/landmark/landmark hides 
/home/monnier/src/emacs/elpa/packages/crisp/crisp hides 

(sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils add-log log-view pcvs-util sh-script smie
make-mode executable copyright whitespace vc vc-dispatcher smerge-mode
lisp-mnt xscheme unsafep trace testcover shadow scheme re-builder
profiler inf-lisp ielm gmm-utils ert pp find-func ewoc debug elp edebug
cl-indent cus-edit cus-start cus-load wid-edit vc-git diff-mode
filecache map cl-extra help-fns radix-tree server time-date flymake-proc
flymake compile comint ansi-color ring warnings noutline outline
easy-mmode flyspell ispell checkdoc thingatpt help-mode load-dir
elec-pair reveal autoinsert proof-site proof-autoloads cl pg-vars
savehist minibuf-eldef disp-table compact-docstrings cl-seq inline
kotl-loaddefs advice info realgud-recursive-autoloads finder-inf
url-auth package easymenu epg-config url-handlers url-parse auth-source
eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq
byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib bbdb-loaddefs
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax font-core term/tty-colors frame cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 8 219296 26772)
 (symbols 24 29613 0) (miscs 20 4050 839) (strings 16 68318 5077)
 (string-bytes 1 2005085)
 (vectors 8 38803) (vector-slots 4 1642549 23736) (floats 8 120 353)
 (intervals 28 2761 113)
 (buffers 528 30))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]