> > Thank you for the response.
> > Just wanted to know is there any way i can get the previous tag details.
> 
> Let me know if you have any specific troubles interpreting the
> explanation of your problem in my original response.

Sorry, my explanation indeed skipped a crucial bit of the logic.
Please see the corrected text below.

[...]
>>>> when i try to execute the below command it throws me an error
>>>>
>>>> $git describe --abbrev=0 --tags $(`git rev-list --tags --skip-count=1
>>>> --max-count=1`)
>>>> Error:  fece0ddf3d4ef9b61640b5ae4c3c5f0e3abaf326: command not found.
>>> [...]
>>>
>>> When your shell sees a `...` construct, it takes the text between the
>>> backticks, executes it as a comand and replaces the source text and the
>>> backticks with the output that command sent to its standard output
>>> stream. For the `git rev-list` command, this is the SHA-1 name of a
>>> commmit.
>>>
>>> When the shell sees a $(...) construct, it does with the text between
>>> the opening "$(" and the closing ")" and treats it almost the same way
>>> it does for the `...` construct (the exact differences are of no
>>> interest here).

The paragraph above instead should be:

  When the shell sees a $(...) construct, it processes the text between
  the opening "$(" and the closing ")" in almost the same way it does when
  expanding a `...` construct (the exact differences are of no interest here).

Now I hope the following is clear:

>>> So what happens here is that you ask the shell to interpret the SHA-1
>>> name of a commit found by the `git rev-list` command as another command.
>>> There is no point doing that.

In other words, you first apply the so-called "command substitution"
using the `...` construct and then try to apply to its result - which is
a string containing a SHA-1 hash value - a slightly different form of
command substitution, which fails.

[...]

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to