alpha
Login
or
Join now
alice.pds.demo.boltless.dev
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
2
Pulls
1
Pipelines
core
/
knotserver
/
git
1 folder
8 files
at
1e4fe088b665ea7ffc67c6e8ea4ad6a7b1f76d00
oppiliappan
knotserver: git: rework commitsBetween to use rev-list
1y ago
1e4fe088
service
knotserver: git/service: refactor execution of git service command
1 year ago
diff.go
knotserver: git: rework commitsBetween to use rev-list the previous commit iterator approach was faulty in cases of merge commits, as it only uses the first parent returned by .Parents(). this also makes use of the --no-merges flag when preparing commits for format-patch. Signed-off-by: oppiliappan <me@oppi.li>
1 year ago
fork.go
knotserver: fork: add function to sync fork
1 year ago
git.go
knotserver: git: do not pass HEAD as a default arg to rev-list when calling rev-list, HEAD was passed as a default argument: git rev-list HEAD --count but HEAD is only populated when we perform git.Open; it is zeroed out when we perform git.PlainOpen: git rev-list 00000... --count this causes rev-list to exit with an error, when used in repos that are git.PlainOpen'd. Signed-off-by: oppiliappan <me@oppi.li>
1 year ago
last_commit.go
knotserver: git: improve performance of last_commit_time uses `git log --name-only` to speed things along. the performance tradeoff here is that active repositories tend to load last-commit times really quickly, but directories with one file that was modified 20k commits ago will result in the entire log being walked through. git-log command is parsed as it streams to avoid having to wait for the entire command to complete, and as soon as the entire directory's listing is hydrated, we cancel the command. most of the time, this results in hydration of subdirectories also (this gets cached), resulting in good experience when browsing a repo (typically moving down directories gets faster with each click, as fewer files need hydration). Signed-off-by: oppiliappan <me@oppi.li>
1 year ago
merge.go
knotserver: git: cache merge check results Signed-off-by: oppiliappan <me@oppi.li>
1 year ago
post_receive.go
knotserver: refactor post-receive hook move the parsing logic into a separate file Signed-off-by: oppiliappan <me@oppi.li>
1 year ago
repo.go
set default branch from KNOT_REPO_MAIN_BRANCH
1 year ago
tree.go
knotserver: git: improve performance of last_commit_time uses `git log --name-only` to speed things along. the performance tradeoff here is that active repositories tend to load last-commit times really quickly, but directories with one file that was modified 20k commits ago will result in the entire log being walked through. git-log command is parsed as it streams to avoid having to wait for the entire command to complete, and as soon as the entire directory's listing is hydrated, we cancel the command. most of the time, this results in hydration of subdirectories also (this gets cached), resulting in good experience when browsing a repo (typically moving down directories gets faster with each click, as fewer files need hydration). Signed-off-by: oppiliappan <me@oppi.li>
1 year ago