detached 8c0d565

refactor(syncobj): remove unused ImportTimeline

commit
8c0d565d8d481b02e636695076c955f5cd120267
author
brice · · 2026-10-01 17:40 UTC
parent
7839b6b
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
1 file · +0 -11
M internal/presentation/syncobj/syncobj.go +0 -11
@@ -129,17 +129,6 @@ func (n *Node) ExportTimeline(handle uint32) (int, error) {
129129 return int(a.FD), nil
130130 }
131131
132-// ImportTimeline turns a syncobj FD (as returned by ExportTimeline, possibly by
133-// another process or Node) into a handle of this node. The FD stays owned by
134-// the caller.
135-func (n *Node) ImportTimeline(fd int) (uint32, error) {
136- a := handleArg{FD: int32(fd)}
137- if err := n.ioctl(ioctlFDToHandle, unsafe.Pointer(&a)); err != nil {
138- return 0, err
139- }
140- return a.Handle, nil
141-}
142-
143132 // EventFD arms efd, an eventfd owned by the caller, to become readable when
144133 // point of the timeline behind handle is signaled. The point need not be
145134 // submitted yet. The registration is one-shot: re-arm after every use. The
@@ -129,17 +129,6 @@ func (n *Node) ExportTimeline(handle uint32) (int, error) {
129 return int(a.FD), nil129 return int(a.FD), nil
130 }130 }
131 131
132-// ImportTimeline turns a syncobj FD (as returned by ExportTimeline, possibly by
133-// another process or Node) into a handle of this node. The FD stays owned by
134-// the caller.
135-func (n *Node) ImportTimeline(fd int) (uint32, error) {
136- a := handleArg{FD: int32(fd)}
137- if err := n.ioctl(ioctlFDToHandle, unsafe.Pointer(&a)); err != nil {
138- return 0, err
139- }
140- return a.Handle, nil
141-}
142-
143 // EventFD arms efd, an eventfd owned by the caller, to become readable when132 // EventFD arms efd, an eventfd owned by the caller, to become readable when
144 // point of the timeline behind handle is signaled. The point need not be133 // point of the timeline behind handle is signaled. The point need not be
145 // submitted yet. The registration is one-shot: re-arm after every use. The134 // submitted yet. The registration is one-shot: re-arm after every use. The

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 12

↑↓ moveenter openesc close