0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-21 05:55:28 +01:00
gitea/templates/repo/editor
yp05327 2c80421243
Convert max file name length to 255 (#30489)
Quick/Partly fix #29907

In Linux and MacOS, by default the max file name length is 255.
In windows, it depends on the version and settings, and has no file name
length limitation, but has path length limitation.
By default it is 260, considering path length is longer than filename,
so I think it is ok to do this.

For Windows, see
https://learn.microsoft.com/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
For Linux, see
https://github.com/torvalds/linux/blob/master/include/uapi/linux/limits.h#L12-L13
For MacOS, see
https://discussions.apple.com/thread/254788848?sortBy=best
2024-04-15 19:08:31 +00:00
..
cherry_pick.tmpl
commit_form.tmpl Put an edit file button on pull request files to allow a quick operation (#29697) 2024-03-27 02:34:10 +00:00
delete.tmpl
diff_preview.tmpl
edit.tmpl Convert max file name length to 255 (#30489) 2024-04-15 19:08:31 +00:00
patch.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
upload.tmpl Convert max file name length to 255 (#30489) 2024-04-15 19:08:31 +00:00