issues

Github, Jira, Gitlab issues from Plan 9's acme
Log | Files | Refs | README | LICENSE

commit 791ad7f130c5cc7c060bb503c9b2c7cfc2797eb4
parent 4b4a1e1a4e3aba4c9ba625ac563d40248182249f
Author: Oliver Lowe <o@olowe.co>
Date:   Fri, 17 Jul 2026 22:46:04 +1000

hub: remove unneeded parent issue ID from file

Comments have some kind of unique ID within a repository, so as long
as you have the repo and comment number you can load the comment.

Diffstat:
Missue/hub/file.go | 4----
Missue/hub/fs.go | 1-
2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/issue/hub/file.go b/issue/hub/file.go @@ -28,9 +28,6 @@ type fakeFile struct { number int buf *bytes.Buffer - // comment files need to know which issue they belong to - parent int - // directory files children []fs.DirEntry dirp int @@ -167,7 +164,6 @@ func (f *fakeFile) ReadDir(n int) ([]fs.DirEntry, error) { f.children[i] = &fakeFile{ typ: ftypeComment, number: c.ID, - parent: f.parent, } } } diff --git a/issue/hub/fs.go b/issue/hub/fs.go @@ -69,7 +69,6 @@ func (fsys *FS) Open(name string) (fs.File, error) { return nil, &fs.PathError{"open", name, fs.ErrNotExist} } f.typ = ftypeComment - f.parent = issueNum f.number = num default: return nil, &fs.PathError{"open", name, fs.ErrNotExist}