Skip to content

Commit

Permalink
adsf
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 26, 2024
1 parent 8c75bb6 commit 3a65830
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@
" result = process.stdout.readlines()\n",
" modifiedTimes = []\n",
" \n",
" if len(result) >= 1:\n",
" for line in result:\n",
" modifiedTimes.append(line.decode(\"utf-8\").replace('\\n', ''))\n",
" for line in result:\n",
" modifiedTimes.append(line.decode(\"utf-8\").replace('\\n', ''))\n",
" \n",
" # In case of a redundant '\\n' at the end of an output\n",
" if modifiedTimes[-1] == '':\n",
Expand All @@ -246,6 +245,7 @@
" if '1404' in cmd[-1] :\n",
" print(f'{cmd = }')\n",
" print(f'{modifiedTimes = }')\n",
" print(f'{result = }')\n",
" # modifiedTimes.sort()\n",
" \n",
" try :\n",
Expand Down Expand Up @@ -285,7 +285,8 @@
" chdir('../')\n",
" print(f'README path: {getcwd() = }')\n",
"\n",
" cmd = r\"git log --follow --format=%ct --reverse --\".split()\n",
" cmd = r\"git log --format=%ct --reverse --\".split()\n",
" # cmd = r\"git log --follow --format=%ct --reverse --\".split()\n",
" output = {}\n",
" \n",
" oldest_date = datetime.now()\n",
Expand Down
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,8 @@ def individualCTimeViaGit(cmd: List[str]) -> Tuple[datetime, datetime] :
result = process.stdout.readlines()
modifiedTimes = []

if len(result) >= 1:
for line in result:
modifiedTimes.append(line.decode("utf-8").replace('\n', ''))
for line in result:
modifiedTimes.append(line.decode("utf-8").replace('\n', ''))

# In case of a redundant '\n' at the end of an output
if modifiedTimes[-1] == '':
Expand All @@ -181,6 +180,7 @@ def individualCTimeViaGit(cmd: List[str]) -> Tuple[datetime, datetime] :
if '1404' in cmd[-1] :
print(f'{cmd = }')
print(f'{modifiedTimes = }')
print(f'{result = }')
# modifiedTimes.sort()

try :
Expand Down Expand Up @@ -217,7 +217,8 @@ def getAllCTimesViaGit(paths: List[str]) -> Dict[str, Tuple[datetime, datetime]]
chdir('../')
print(f'README path: {getcwd() = }')

cmd = r"git log --follow --format=%ct --reverse --".split()
cmd = r"git log --format=%ct --reverse --".split()
# cmd = r"git log --follow --format=%ct --reverse --".split()
output = {}

oldest_date = datetime.now()
Expand Down

0 comments on commit 3a65830

Please sign in to comment.