git-show Questions
4
Solved
How can I dump a log of my commits showing only the ones with notes of a given namespace?
Commits without notes, or notes not belonging to a given namespace should be filtered out
In the text dump ...
4
Solved
git show filename diplays a diff, while
git show branch:path/to/filename displays the content of the file.
I look in the help (git show --help) and what I understood is that it should
default to H...
30
Solved
How can I print a plain list of all files that were part of a given commit?
Although the following lists the files, it also includes unwanted diff information for each:
git show a303aa90779efdd2f6b...
5
Solved
Apparently this:
git log --all --after="<date> 00:00" --before="<date> 23:59" --author="<author>"
filters commits based on the committer date. How can I make it show commits fo...
8
Solved
Is there a better way of getting a raw list of SHA1s for ALL objects in a repository than:
ls .git/objects/??/\*
and
cat .git/objects/pack/*.idx | git show-index
I know about git rev-list --all but...
Sundsvall asked 8/9, 2011 at 13:19
1
Solved
I can do git show <some-commit>:path/to/some/file but what do I replace <some-commit> to get the currently staged version of the file?
Context: I'm writing a pre-commit hook and I want ...
1
Solved
I like my tabs displayed as 4 spaces, and for that I have the preference core.pager = 'less -x4'.
I know that at this point I'm nitpicking, but I'd love for the leading tab to be 4 spaces even in ...
Drud asked 9/1, 2019 at 12:34
2
If I use git show all by itself in a git repo it shows a bunch of information such as commits, diffs, etc.
This page (https://git-scm.com/docs/git-show) just says:
Shows one or more objects (blob...
2
Solved
Is there a way to get the git show command to show the whole contents of a file when viewing a commit? For example: if it currently show something like
foo.cpp
+++ int main() {
+++ std::cout <...
2
Solved
I am just getting into VC and in particular git. I am aware of basic commands like git add/commit/remote but having a hard time understanding the output:
$ git show f27d852
commit f27d852fc750a9c...
1
Solved
We renamed a file where git log --follow my/new-file correctly shows changes before and after the rename.
But this command does not work to show a prior version: git show <rev>:my/new-file....
3
Solved
Lately I've been using git show <hash> to create diffs for later reference because it's easier to type than git diff <hash>~ <hash> and it shows the commit information (timestamp,...
2
Solved
I am reviewing a very old commit. I want to see the changes a particular commit made but I want to see that in full context, i.e. I want to see whole file and the changes that person had made. The ...
1
Solved
How are the commands git log -p, git show, and git diff related and why would one be used over another?
Given a repo with the following 4 commits:
commitd - last commit
commitc
commitb
coom...
2
Solved
I have a bare repository in my remote. I want to look at files, that is open in an editor and view the code.
For listing files, git ls-files master or git ls-tree master.
and for viewing single fil...
2
Solved
I thought they should be basically the same, but when I tried
$ git stash show -p stash@{N}
and
$ git show stash@{N}
the latter shows some additional commit information, but the actual diff w...
1
I have read parsing git log output, preferably as xml but that does not help. I am trying to get the following information about a Git tag.
User that created the tag
Message associated with tag cr...
1
© 2022 - 2025 — McMap. All rights reserved.