Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 26, 2024
1 parent 3a65830 commit 6bdd7d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,13 @@
" modifiedTimes = []\n",
" \n",
" for line in result:\n",
" modifiedTimes.append(line.decode(\"utf-8\").replace('\\n', ''))\n",
" temp = 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",
" modifiedTimes.pop()\n",
" # In case of a redundant '\\n' at the end of an output\n",
" if temp :\n",
" modifiedTimes.append(temp)\n",
" \n",
" modifiedTimes.sort()\n",
" \n",
" if '1404' in cmd[-1] :\n",
" print(f'{cmd = }')\n",
Expand Down Expand Up @@ -285,7 +287,7 @@
" chdir('../')\n",
" print(f'README path: {getcwd() = }')\n",
"\n",
" cmd = r\"git log --format=%ct --reverse --\".split()\n",
" cmd = r\"git log -M --format=%ct --reverse --\".split()\n",
" # cmd = r\"git log --follow --format=%ct --reverse --\".split()\n",
" output = {}\n",
" \n",
Expand Down
12 changes: 7 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,13 @@ def individualCTimeViaGit(cmd: List[str]) -> Tuple[datetime, datetime] :
modifiedTimes = []

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

# In case of a redundant '\n' at the end of an output
if modifiedTimes[-1] == '':
modifiedTimes.pop()
# In case of a redundant '\n' at the end of an output
if temp :
modifiedTimes.append(temp)

modifiedTimes.sort()

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

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

Expand Down

0 comments on commit 6bdd7d5

Please sign in to comment.