0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-20 09:18:49 +01:00
gitea/services/repository
ericLemanissier 40faa6dc78
git graph: don't show detached commits (#33645)
Current git graph is not usable for mirrors of repos having a lot of
PRs, as can be seen at
https://demo.gitea.com/ericLemanissier/conan-center-index/graph

![image](https://github.com/user-attachments/assets/ace40dd2-3eea-4d69-8e19-10fb7224e326)


Manually running `git log --graph --date-order --all` on such a repo
indeed shows:
```
*   commit c4a34bd39d7977c8630177c5f88507000ea3e943
|\  Merge: a4bbd3ad6b 35a102c77c
| | Author: toge <toge.mail@gmail.com>
| | Date:   Wed Feb 19 08:36:41 2025 +0000
| |
| |     Merge 35a102c77cbc38d84baca0ca63466fb410336ea8 into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98
| |
| * commit 35a102c77cbc38d84baca0ca63466fb410336ea8
| | Author: toge <toge.mail@gmail.com>
| | Date:   Wed Feb 19 17:36:35 2025 +0900
| |
| |     update 4.4.2
| |
| | * commit 5d610f4fd3c0428731e402a2f618fad9ce055875
| |/| Merge: a4bbd3ad6b fe916fb70a
|/| | Author: Antony Peacock <ant.peacock@gmail.com>
| | | Date:   Wed Feb 19 08:31:30 2025 +0000
| | |
| | |     Merge fe916fb70a8bf49503cce70a5c7124bcc4314ddc into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98
| | |
| | * commit fe916fb70a8bf49503cce70a5c7124bcc4314ddc
| | | Author: Antony Peacock <ant.peacock@gmail.com>
| | | Date:   Wed Feb 19 08:31:18 2025 +0000
| | |
| | |     Remove parquet cmakelist patch
| | |
| | | * commit 9f6d2759d650ec3c86d01bb940e829e7e14220c2
| |_|/| Merge: a4bbd3ad6b f0963429b0
|/| | | Author: Thomas Sedlmair <thomas.sedlmair@googlemail.com>
| | | | Date:   Wed Feb 19 08:03:08 2025 +0100
| | | |
| | | |     Merge f0963429b0952499da0da7e559f8d53387097307 into a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98
| | | |
| | | * commit f0963429b0952499da0da7e559f8d53387097307
| |_|/  Author: Thomas Sedlmair <thomas.sedlmair@googlemail.com>
|/| |   Date:   Wed Feb 19 08:01:43 2025 +0100
| | |
| | |       added cwt-cucumber 2.5
| | |
```

On the other hand, running `git log --graph --date-order --branches
--tags` returns the expected:
```
* commit a4bbd3ad6bb5a0f8e5117a897d8c55941f533d98 (HEAD -> master)
| Author: Dan <mstr.danila@gmail.com>
| Date:   Fri Feb 14 18:46:11 2025 +0200
|
|     grpc: add version 1.69.0 (#26446)
|
|     * grpc: add version 1.69.0
|
|     * add cmake tool requires
|
|     ---------
|
|     Co-authored-by: Luis Caro Campos <3535649+jcar87@users.noreply.github.com>
|
* commit a7868807cb2e21206ebf95278cb588f29a3e2205
| Author: Guillaume Egles <gegles@users.noreply.github.com>
| Date:   Thu Feb 13 05:44:35 2025 -0800
|
|     openssl: add versions `3.0.16`, `3.1.8`, `3.2.4`, `3.3.3`, `3.4.1`, stop publishing revisions for version `3.0.15` (#26578)
|
* commit 86057d3e63ac71e2fe48c07bb301f2d54187044d
| Author: Luis Caro Campos <3535649+jcar87@users.noreply.github.com>
| Date:   Thu Feb 13 13:34:41 2025 +0000
|
|     android-ndk: dont set LD and AS variables (#26581)
|
|     * android-ndk: dont set LD and AS variables
|
|     * android-ndk: refactor test package
|
* commit 123e382fafd2f5e811e10faac02efc275c45ec2a
| Author: Nikita <root.kidik@gmail.com>
| Date:   Thu Feb 13 12:29:39 2025 +0300
|
|     libffi: fix conditionals when building on Windows (#26500)
|
|     * fix: add missing or `clang`
|
|     * fix: libffi - always require as tool `automake`
```
2025-02-19 10:35:08 -08:00
..
archiver Refactor context RefName and RepoAssignment (#33226) 2025-01-13 01:07:05 +00:00
commitstatus Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
files Move commits signature and verify functions to service layers (#33605) 2025-02-16 12:24:07 +00:00
gitgraph git graph: don't show detached commits (#33645) 2025-02-19 10:35:08 -08:00
adopt_test.go Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
adopt.go Fix various problems (artifact order, api empty slice, assignee check, fuzzy prompt, mirror proxy, adopt git) (#33569) 2025-02-13 03:26:27 +08:00
avatar_test.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
avatar.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
branch.go Improve sync fork behavior (#33319) 2025-01-20 15:17:47 +08:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
check.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
collaboration_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
collaboration.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
contributors_graph_test.go disable gravatar in test (#32529) 2024-11-21 04:30:48 +00:00
contributors_graph.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
create.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
delete_test.go Delete repos of org when purge delete user (#27273) 2023-10-19 13:16:11 +00:00
delete.go Move issue pin to an standalone table for querying performance (#33452) 2025-02-17 11:28:37 -08:00
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2022-12-27 15:21:14 -06:00
fork.go Fix system admin cannot fork or get private fork with API (#33401) 2025-01-27 16:25:14 +00:00
generate_test.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
generate.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
hooks.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
init.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
license_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
merge_upstream.go Improve sync fork behavior (#33319) 2025-01-20 15:17:47 +08:00
migrate.go Support the new exit code for git remote subcommands for git version >=2.30.0 (#33129) 2025-01-07 20:42:45 +08:00
push.go Automerge supports deleting branch automatically after merging (#32343) 2025-01-10 03:51:03 +08:00
repo_team_test.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
repo_team.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
repository.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
setting.go Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00
template.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
transfer_test.go Refactor repository transfer (#33211) 2025-01-30 05:40:44 +00:00
transfer.go Refactor repository transfer (#33211) 2025-01-30 05:40:44 +00:00