GitRoot
craft your forge, build your project, grow your community freely
1# Todo is lie
2
3### [app/libs/golang/plugin/server.go](../app/libs/golang/plugin/server.go)
4
5
6```
7 ptrHash, sizeHash := stringToPtr(hash)
8 ptrDiff := uint32(uintptr(unsafe.Pointer(unsafe.StringData(strings.Repeat("?", 2048))))) // TODO only 2048 chars, find better way
9 sizeDiff := _diffWithParent(ptrFile, sizeFile, ptrHash, sizeHash, ptrDiff)
10```
11
12### [app/plugins/apex/main.go](../app/plugins/apex/main.go)
13
14
15```
16 } else {
17 // TODO download if distant? Copy if local?
18 }
19```
20
21### [app/plugins/apex/worktree.go](../app/plugins/apex/worktree.go)
22
23
24```
25 LastEdited: commit.Date,
26 Author: "// TODO",
27 hasBeenUpdated: true,
28```
29
30### [app/plugins/silo/conf.go](../app/plugins/silo/conf.go)
31
32
33```
34 {Title: "Roadmaps", Description: roadmapDescription, Format: "table", TableHeader: "| | priority |", For: "**/*.md", Where: "kind: 'roadmap'", Selects: []string{"priority: (\\d+)"}, To: "boards/roadmap.md", Paginator: 0, Sort: "title", SortOrder: "asc"},
35 {Title: "Todo is lie", Description: "", Format: "embed", TableHeader: "", For: "**/*|!.gitroot/**", Where: "// TODO", Selects: []string{}, To: "boards/todos.md", Paginator: 0, Sort: "file", SortOrder: "asc"},
36 {Title: "All Issues", Description: "All\n[New](./triage.md)", Format: "table", TableHeader: "| | status | priority |", For: "**/*.md", Where: "kind: issue", Selects: []string{"status: (.*)", "priority: (\\d+)"}, To: "boards/issues.md", Paginator: 10, Sort: "select[1]", SortOrder: "desc"},
37```
38
39### [app/server/background/plugin.go](../app/server/background/plugin.go)
40
41
42```
43
44 // TODO delete
45
46```
47
48### [app/server/configuration/rootConfig.go](../app/server/configuration/rootConfig.go)
49
50
51```
52 if version != rc.Version {
53 // TODO manage update
54 }
55```
56
57### [app/server/plugin/commandfordiff.go](../app/server/plugin/commandfordiff.go)
58
59
60```
61 if err := repo.WalkCommit(cmd.Old, cmd.New, func(com *object.Commit) error {
62 parent, err := com.Parent(0) // TODO what parent?
63 if err != nil {
64```
65
66### [app/server/plugin/configuration.go](../app/server/plugin/configuration.go)
67
68
69```
70 pathPlugin := m.conf.GetDirPathDataPlugin(p.Name)
71 versions := strings.Split(p.Url, "/") // TODO find a better way to have version
72 version := versions[len(versions)-1]
73```
74
75### [app/server/plugin/manager.go](../app/server/plugin/manager.go)
76
77
78```
79
80 // TODO rework plugin start/activation
81 // for each command (branch) we have a list of plugins to start/activate
82```
83
84### [app/server/plugin/runtimeforworktree.go](../app/server/plugin/runtimeforworktree.go)
85
86
87```
88 r.repoWriter = repoWriter
89 r.command = &cmds[len(cmds)-1] // TODO should not be last cmd see ./manager.go line 65 todo
90
91```
92
93### [app/server/repository/commit.go](../app/server/repository/commit.go)
94
95
96```
97 // display = display + "-----\n"
98 //os.Stdout.Write([]byte(display)) // TODO make a special logger?
99 // cIter.Close()
100```
101
102### [app/server/repository/create.go](../app/server/repository/create.go)
103
104
105```
106 Bare: true,
107 ObjectFormat: config.SHA1, // TODO debug sha256
108 })
109```
110
111### [app/server/repository/diff.go](../app/server/repository/diff.go)
112
113
114```
115 diffStr := "```diff"
116 patch, _ := parent.Patch(com) // TODO find a way to get diff only on one file
117 for _, d := range patch.FilePatches() {
118```
119
120### [app/testsuite/proxy-ressources/all-plugins.yml](../app/testsuite/proxy-ressources/all-plugins.yml)
121
122
123```
124 to: boards/todos.md
125 where: // TODO
126 - description: |-
127```
128
129### [app/testsuite/proxy-root.sh](../app/testsuite/proxy-root.sh)
130
131
132```
133quiet_git checkout -b firstGraft
134echo "// TODO better main" >> doc/index.md
135quiet_git add .
136```