File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,3 +46,5 @@ src/cocoindex_code/_version.py
4646
4747# CocoIndex
4848.cocoindex_code /
49+ # CocoIndex Code (ccc)
50+ /.cocoindex_code /
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ def _on_progress(progress: IndexingProgress) -> None:
160160 raise _typer .Exit (code = 1 )
161161
162162
163- _GITIGNORE_COMMENT = "# cocoindex-code "
163+ _GITIGNORE_COMMENT = "# CocoIndex Code (ccc) "
164164_GITIGNORE_ENTRY = "/.cocoindex_code/"
165165
166166
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ def test_add_to_gitignore_creates_file(tmp_path: Path) -> None:
8181 gitignore = tmp_path / ".gitignore"
8282 assert gitignore .is_file ()
8383 content = gitignore .read_text ()
84- assert "# cocoindex-code " in content
84+ assert "# CocoIndex Code (ccc) " in content
8585 assert "/.cocoindex_code/" in content
8686
8787
@@ -111,11 +111,11 @@ def test_add_to_gitignore_skips_when_no_git(tmp_path: Path) -> None:
111111
112112def test_remove_from_gitignore (tmp_path : Path ) -> None :
113113 gitignore = tmp_path / ".gitignore"
114- gitignore .write_text ("*.pyc\n # cocoindex-code \n /.cocoindex_code/\n __pycache__/\n " )
114+ gitignore .write_text ("*.pyc\n # CocoIndex Code (ccc) \n /.cocoindex_code/\n __pycache__/\n " )
115115 remove_from_gitignore (tmp_path )
116116 content = gitignore .read_text ()
117117 assert "/.cocoindex_code/" not in content
118- assert "# cocoindex-code " not in content
118+ assert "# CocoIndex Code (ccc) " not in content
119119 assert "*.pyc" in content
120120 assert "__pycache__/" in content
121121
You can’t perform that action at this time.
0 commit comments