# \[SOLVED\] Cannot display commit containing 1000+ files

**URL:** <https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445>\
**Category:** Install/Maintain/Configure\
**Created:** [July 24, 2018, 5:22pm UTC](https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445 "2018-07-24T17:22:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgoddard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mgoddard/32/210_2.png) [@mgoddard](https://forum.gitea.com/u/mgoddard)\
**Post date:** [July 24, 2018, 5:22pm UTC](https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445/1 "2018-07-24T17:22:42Z")

</div>

As part of evaluation testing, I’m testing a push of an exceptionally large commit. It’s hitting a limit WRT the pull request. It will only display the first 100. Others such as Gitlab have a similar issue when exceeding 1000 files in a commit. While such huge commits are very few and far between, we do have to allow for the possibility they could happen. Is there a way to locally modify or override this parameter, for example?

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [July 26, 2018, 1:28am UTC](https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445/2 "2018-07-26T01:28:49Z")

</div>

Hi @mgoddard,

Could you try changing the `MAX_GIT_DIFF_FILES` value (documentation on this value here: [https://docs.gitea.io/en-us/config-cheat-sheet/](https://docs.gitea.io/en-us/config-cheat-sheet/) ) make sure to restart Gitea service after changing config too.

Thanks,  
@techknowlogick

---

<div class="post-metadata">

**Author:** ![mgoddard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/mgoddard/32/210_2.png) [@mgoddard](https://forum.gitea.com/u/mgoddard)\
**Post date:** [July 26, 2018, 7:11pm UTC](https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445/3 "2018-07-26T19:11:08Z")

</div>

Hi,

I tried that, but it had no effect on the number of files displayed when selecting “Files changed” in a large pull request. However, I was able to make it work by adding the entry:

**[git]**  
**MAX\_GIT\_DIFF\_FILES = 1500**

to my app.ini file. I was also able to address another issue by adding and modifying the value of:

**MAX\_GIT\_DIFF\_LINES**

in that same section of app.ini as well.

So far, it’s looking good!

Thanks!

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [July 26, 2018, 8:50pm UTC](https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445/4 "2018-07-26T20:50:34Z")

</div>

Glad that worked out! 🎉

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [July 26, 2018, 8:50pm UTC](https://forum.gitea.com/t/solved-cannot-display-commit-containing-1000-files/445/5 "2018-07-26T20:50:52Z")

</div>

Closed on July 26, 2018, 8:50pm UTC


