From: Stephen Berman <stephen.berman@gmx.net>
To: emacs-devel@gnu.org
Subject: Re: Problem committing tests
Date: Mon, 29 May 2017 10:08:43 +0200 [thread overview]
Message-ID: <874lw4qe44.fsf@rosalinde> (raw)
In-Reply-To: <871sr8xhn8.fsf@zigzag> (Thien-Thi Nguyen's message of "Mon, 29 May 2017 09:10:35 +0200")
On Mon, 29 May 2017 09:10:35 +0200 Thien-Thi Nguyen <ttn@gnu.org> wrote:
> () 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:
Unfortunately, it is more than I currently have time for with my
knowledge of and experience with git and the Emacs test environment.
> - 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.
I agree, but I'm afraid being good is the best I can hope for for now.
So I'll wait a bit to see if any other manageable suggestions come up,
otherwise I'll do the .gitattributes workaround.
Steve Berman
prev parent reply other threads:[~2017-05-29 8:08 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
2017-05-29 8:08 ` Stephen Berman [this message]
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=874lw4qe44.fsf@rosalinde \
--to=stephen.berman@gmx.net \
--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).