From: Thien-Thi Nguyen <ttn@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Problem committing tests
Date: Mon, 29 May 2017 09:10:35 +0200 [thread overview]
Message-ID: <871sr8xhn8.fsf@zigzag> (raw)
In-Reply-To: <87wp90ppu7.fsf@rosalinde> (Stephen Berman's message of "Mon, 29 May 2017 00:40:48 +0200")
[-- Attachment #1: Type: text/plain, Size: 1748 bytes --]
() Stephen Berman <stephen.berman@gmx.net>
() Mon, 29 May 2017 00:40:48 +0200
I wanted to include some tests with the fix for bug#27121
that I just committed to master (d76c007); however, git
complained about trailing whitespace in two data files for
the tests. This whitespace is part of the file format used
by todo-mode.el, so I cannot delete it. I see that the
.gitattributes file in the repository lists several test
files for which whitespace warnings should be ignored; should
I add the todo-mode test data files to the list? Or is there
another or better way to tell git to ignore this whitespace
and commit the files?
I think it would be cool to restructure the process so that the
eol ws-requiring data is generated at run-(test-)time from data
that has no eol ws. This is more work, but:
- It is explicit.
- It avoids possible future lossage if the DVCS changes.
- It avoids possible future lossage via PEBKAC or ignorance.
(Just think, what if that fool ttn fubars this somehow!?)
- If the work should happen to be algorithmic (it is, what a
surprise! :-D), it could be generalized and re-used.
- If it is written well, it could be documented and exported.
So, i urge you to put in the effort here, slap your name on it,
and bask in the glory of future Q/A chains terminating w/ a
time-saving link to righteous code (and relax{ed,ing} docs).
IOW, it is good to cope, better to create, best to invest.
--
Thien-Thi Nguyen -----------------------------------------------
(defun responsep (query)
(pcase (context query)
(`(technical ,ml) (correctp ml))
...)) 748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2017-05-29 7:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-28 22:40 Problem committing tests Stephen Berman
2017-05-29 6:41 ` martin rudalics
2017-05-29 12:18 ` Noam Postavsky
2017-05-30 6:32 ` martin rudalics
2017-05-29 7:10 ` Thien-Thi Nguyen [this message]
2017-05-29 8:08 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871sr8xhn8.fsf@zigzag \
--to=ttn@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).