Bugzilla – Attachment 183613 Details for
Bug 40261
Tidy `build-git-snapshot`
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40261: Teach tidy.pl how to handle build-git-snapshot
Bug-40261-Teach-tidypl-how-to-handle-build-git-sna.patch (text/plain), 1.25 KB, created by
David Flater
on 2025-06-27 14:47:51 UTC
(
hide
)
Description:
Bug 40261: Teach tidy.pl how to handle build-git-snapshot
Filename:
MIME Type:
Creator:
David Flater
Created:
2025-06-27 14:47:51 UTC
Size:
1.25 KB
patch
obsolete
>From 9c7cd85fff9867f78b5b2f72ee42b8430d1b42fd Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 27 Jun 2025 13:54:29 +0000 >Subject: [PATCH] Bug 40261: Teach tidy.pl how to handle build-git-snapshot > >This patch makes the `tidy.pl` script handle the mentioned script as a Perl script. > >To test: >1. Run: > $ ktd --shell > k$ perl misc/devel/tidy.pl debian/build-git-snapshot >=> FAIL: You get: > >``` >Cannot guess filetype for debian/build-git-snapshot at misc/devel/tidy.pl line 234. >``` > >2. Apply this patch >3. Repeat 1 >=> SUCCESS: It tidies the file! >4. Reset to the current head > k$ git reset --hard HEAD >5. Apply the tidy patch >6. Repeat 1 >7. Run: > k$ git diff >=> SUCCESS: No diff, the file is tidy >8. Sign off :-D >--- > misc/devel/tidy.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/misc/devel/tidy.pl b/misc/devel/tidy.pl >index 2ab5c20c33..3fa7e2ced8 100755 >--- a/misc/devel/tidy.pl >+++ b/misc/devel/tidy.pl >@@ -223,6 +223,7 @@ sub tidy_tt { > > sub get_filetype { > my ($file) = @_; >+ return 'pl' if $file =~ m{^debian/build-git-snapshot$}; > return 'pl' if $file =~ m{^svc} || $file =~ m{^opac/svc}; > return 'pl' if $file =~ m{\.pl$} || $file =~ m{\.pm} || $file =~ m{\.t$}; > return 'pl' if $file =~ m{\.PL$}; >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40261
:
183608
|
183610
|
183611
|
183612
|
183613
|
183614