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 ...
Weidner asked 29/10, 2012 at 8:29

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...
Anastos asked 25/7, 2019 at 21:19

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...
Eparch asked 8/1, 2009 at 12:26

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...
Exploitation asked 18/5, 2016 at 23:8

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 ...
Uniocular asked 25/3, 2020 at 17:18

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...
Bearish asked 14/7, 2018 at 22:9

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 <...
Fardel asked 1/12, 2014 at 22:8

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...
Postprandial asked 2/7, 2016 at 10:52

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....
Dulcedulcea asked 25/11, 2015 at 17:17

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,...
Myceto asked 12/10, 2012 at 22:47

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 ...
Coraciiform asked 9/1, 2015 at 9:57

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...
Stillwell asked 1/9, 2014 at 15:13

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...
Gumma asked 8/5, 2014 at 19:15

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...
Boarding asked 12/2, 2014 at 20:11

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...
Karrah asked 28/5, 2013 at 15:10
1

© 2022 - 2025 — McMap. All rights reserved.