diff --git a/git_reviewers/reviewers.py b/git_reviewers/reviewers.py
index e4eee15..77ec78e 100755
--- a/git_reviewers/reviewers.py
+++ b/git_reviewers/reviewers.py
@@ -101,6 +101,18 @@ class FindLogReviewers(FindFileLogReviewers):
         """ Find the changed files between current status and master """
         git_diff_files_command = ['git', 'diff', 'master', '--name-only']
         git_diff_files = self.run_command(git_diff_files_command)
+        if not git_diff_files:
+            return FindHistoricalReviewers().get_changed_files()
+        return git_diff_files
+
+
+class FindHistoricalReviewers(FindFileLogReviewers):
+    def get_changed_files(self) -> List[str]:
+        """Find all git files """
+        git_diff_files_command = [
+            'git', 'ls-tree', '-r', 'master', '--name-only'
+        ]
+        git_diff_files = self.run_command(git_diff_files_command)
         return git_diff_files
 
 

Make git-reviewers work with commits that only add new files
Read reviewers from entire repository history
diff --git a/git_reviewers/tests/test.py b/git_reviewers/tests/test.py
index 87e2df4..933ebd6 100644
--- a/git_reviewers/tests/test.py
+++ b/git_reviewers/tests/test.py
@@ -110,6 +110,27 @@ class TestLogReviewers(unittest.TestCase):
         files = self.finder.get_changed_files()
         self.assertEqual(files, ['README.rst', 'setup.py'])
 
+    @patch('git_reviewers.reviewers.FindHistoricalReviewers')
+    @patch('subprocess.run')
+    def test_no_diffs(self, mock_run, mock_historical):
+        process = MagicMock()
+        process.stdout = b''
+        mock_run.return_value = process
+        mock_historical().get_changed_files.return_value = ['asdf']
+        files = self.finder.get_changed_files()
+        self.assertEqual(files, ['asdf'])
+
+
+class TestHistoricalReviewers(unittest.TestCase):
+    def setUp(self):
+        self.finder = reviewers.FindHistoricalReviewers()
+
+    def test_get_changed_files(self):
+        changed_files = ['README.rst', 'setup.py']
+        self.finder.run_command = MagicMock(return_value=changed_files)
+        files = self.finder.get_changed_files()
+        self.assertEqual(files, ['README.rst', 'setup.py'])
+
 
 class TestFindArcCommitReviewers(unittest.TestCase):
     def setUp(self):

pip install -e .[tests]
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc
3.7
docs/requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
certifi @ file:///croot/certifi_1671487769961/work/certifi
exceptiongroup==1.2.2
-e git+https://github.com/albertyw/git-reviewers.git@c3a916e554a058e3e3e3527f5692d0efed97ed83#egg=git_reviewers
importlib-metadata==6.7.0
iniconfig==2.0.0
packaging==24.0
pluggy==1.2.0
pytest==7.4.4
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.15.0

name: git-reviewers
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - packaging==24.0
      - pluggy==1.2.0
      - pytest==7.4.4
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - zipp==3.15.0
prefix: /opt/conda/envs/git-reviewers

git_reviewers/tests/test.py::TestLogReviewers::test_no_diffs git_reviewers/tests/test.py::TestHistoricalReviewers::test_get_changed_files
git_reviewers/tests/test.py::TestFindReviewers::test_check_phabricator_activated git_reviewers/tests/test.py::TestFindReviewers::test_check_phabricator_activated_none git_reviewers/tests/test.py::TestFindReviewers::test_extract_uber_username_from_email git_reviewers/tests/test.py::TestFindReviewers::test_extract_username_from_generic_email git_reviewers/tests/test.py::TestFindReviewers::test_get_reviewers git_reviewers/tests/test.py::TestFindReviewers::test_run_command git_reviewers/tests/test.py::TestFindReviewers::test_run_command_empty_response git_reviewers/tests/test.py::TestFindLogReviewers::test_get_changed_files git_reviewers/tests/test.py::TestFindLogReviewers::test_gets_generic_emails git_reviewers/tests/test.py::TestFindLogReviewers::test_gets_reviewers git_reviewers/tests/test.py::TestFindLogReviewers::test_gets_uber_emails git_reviewers/tests/test.py::TestFindLogReviewers::test_gets_user_weight git_reviewers/tests/test.py::TestLogReviewers::test_get_changed_files git_reviewers/tests/test.py::TestFindArcCommitReviewers::test_multiple_reviews git_reviewers/tests/test.py::TestFindArcCommitReviewers::test_no_reviewers git_reviewers/tests/test.py::TestFindArcCommitReviewers::test_reviewers git_reviewers/tests/test.py::TestShowReviewers::test_copy_reviewers git_reviewers/tests/test.py::TestShowReviewers::test_copy_reviewers_no_pbcopy git_reviewers/tests/test.py::TestShowReviewers::test_show_reviewers git_reviewers/tests/test.py::TestGetReviewers::test_verbose_reviewers git_reviewers/tests/test.py::TestMain::test_ignore_reviewers git_reviewers/tests/test.py::TestMain::test_main git_reviewers/tests/test.py::TestMain::test_phabricator_disabled_reviewers git_reviewers/tests/test.py::TestMain::test_version
git_reviewers/reviewers.py
git_reviewers/reviewers.py